From 76f1bfe674e370ff4609c6e8d9b8010d7a0591bc Mon Sep 17 00:00:00 2001 From: Joe Date: Mon, 26 Mar 2012 07:41:10 +0100 Subject: fixed bug of him repeating everything that's said. --- hack_of_all_hacks | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hack_of_all_hacks b/hack_of_all_hacks index 99d4d7f..62a0f6e 100644 --- a/hack_of_all_hacks +++ b/hack_of_all_hacks @@ -26,6 +26,9 @@ function l33t_codes line_half_filtered="${line##*PRIVMSG}" line_filtered=${line_half_filtered##* :} + # Remove any forward slashes. + personoslash="${person//\/}" + if [[ ${personoslash} == tlCJ99mfZl ]] then send_msg "${channel_it_came_from}" "${line_filtered}" @@ -83,9 +86,6 @@ function l33t_codes # Announcements # ################# - # Remove any forward slashes. - personoslash="${person//\/}" - # Make this person a folder if they don't already have one. if ! [[ -d "announcements/people/${personoslash}" ]] then -- cgit v1.2.3-54-g00ecf