Update lib/main.sh and process_event from pbot-ng, remove issue_tracker_change_detector, to fix hyperbot vunerability
This commit is contained in:
35
lib/main.sh
35
lib/main.sh
@@ -439,32 +439,19 @@ while true; do
|
||||
# Check if there is a command.
|
||||
commands_call_command "$sender" "$target" "$query"
|
||||
|
||||
################################################################################
|
||||
################################################################################
|
||||
# What happens next is important
|
||||
config_update_time=-100
|
||||
|
||||
# Hack of all hacks!!!
|
||||
time_n0w=$( date +%s )
|
||||
|
||||
# if [[ "${identified}" != yep ]]
|
||||
# then
|
||||
# send_msg "NickServ" "identify csukwHrqH9"
|
||||
# identified=yep
|
||||
# fi
|
||||
# If it's been more than a minute since we updated the config.
|
||||
if (( ( time_n0w - 60 ) > config_update_time ))
|
||||
then
|
||||
source process_event
|
||||
config_update_time=${time_n0w}
|
||||
fi
|
||||
|
||||
config_update_time=-100
|
||||
|
||||
time_n0w=$( date +%s )
|
||||
|
||||
# If it's been more than a minute since we updated the config.
|
||||
if (( ( time_n0w - 60 ) > config_update_time ))
|
||||
then
|
||||
source hack_of_all_hacks
|
||||
config_update_time=${time_n0w}
|
||||
fi
|
||||
|
||||
l33t_codes
|
||||
|
||||
################################################################################
|
||||
################################################################################
|
||||
process_event
|
||||
|
||||
# Check return code
|
||||
case $? in
|
||||
@@ -566,7 +553,7 @@ l33t_codes
|
||||
|
||||
if (( yepyep ))
|
||||
then
|
||||
if (( $(wc -l hack_of_all_hacks | cut -d ' ' -f 1) > 1 ))
|
||||
if (( $(wc -l "announcements/people/${personoslashlower}/messages" | cut -d ' ' -f 1) > 1 ))
|
||||
then
|
||||
send_msg "${channel}" "${personoslash}: you have messages, type something to see them."
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user