Fix set nickname and botname from config_ident inside bot_settings.sh

This commit is contained in:
Jesus 2023-07-22 11:29:13 -05:00
parent f6d3da1988
commit 17a599a4c3
No known key found for this signature in database
GPG Key ID: E607CE7149F4D71C
2 changed files with 4 additions and 5 deletions

View File

@ -526,9 +526,8 @@ while true; do
for module in $modules_on_JOIN; do for module in $modules_on_JOIN; do
module_${module}_on_JOIN "$sender" "$channel" module_${module}_on_JOIN "$sender" "$channel"
done done
[[ ${sender%%!*} == hyperbot ]] && echo yes > hyperbot_present [[ ${sender%%!*} == $config_ident ]] && echo yes > hyperbot_present
my_own_name="${config_ident}"
my_own_name='hyperbot'
person="${sender%%!*}" person="${sender%%!*}"
@ -572,7 +571,7 @@ while true; do
for module in $modules_on_PART; do for module in $modules_on_PART; do
module_${module}_on_PART "$sender" "$channel" "$reason" module_${module}_on_PART "$sender" "$channel" "$reason"
done done
[[ ${sender%%!*} == hyperbot ]] && echo no > hyperbot_present [[ ${sender%%!*} == ${config_ident} ]] && echo no > hyperbot_present
elif [[ "$line" =~ ^:([^ ]*)\ +KICK\ +(#[^ ]+)\ +([^ ]+)(\ +:(.*))? ]]; then elif [[ "$line" =~ ^:([^ ]*)\ +KICK\ +(#[^ ]+)\ +([^ ]+)(\ +:(.*))? ]]; then
sender="${BASH_REMATCH[1]}" sender="${BASH_REMATCH[1]}"
channel="${BASH_REMATCH[2]}" channel="${BASH_REMATCH[2]}"

View File

@ -64,7 +64,7 @@ function forget_fact
function process_event function process_event
{ {
my_own_name='hyperbot' my_own_name="${config_ident}"
person="${sender%%!*}" person="${sender%%!*}"