diff options
author | Joseph Graham <joseph@xylon.me.uk> | 2017-06-03 18:48:12 +0100 |
---|---|---|
committer | Joseph Graham <joseph@xylon.me.uk> | 2017-06-03 18:48:12 +0100 |
commit | ff6119f99a9a4c804936a8e07f69a2d94795a77a (patch) | |
tree | 0fbf083551594e75366f6efff3c69000b515ea6b /lib | |
parent | e1c4ef87e665a1a8476e063f03797f4e0496ac8b (diff) |
started abusing it to spam the channel and other users on
FreeNode. The feature could be secured but since nobody normally uses
it anyway I think it's not worth it.
Also tidied up to code a bit and got rid of some old files.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/main.sh | 35 |
1 files changed, 11 insertions, 24 deletions
diff --git a/lib/main.sh b/lib/main.sh index 4fc1adf..7bb7041 100644 --- a/lib/main.sh +++ b/lib/main.sh @@ -440,32 +440,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 - -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 + # 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 -################################################################################ -################################################################################ + process_event # Check return code case $? in @@ -567,7 +554,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 |