summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe <joe@joelightning.com>2012-03-26 07:41:10 +0100
committerJoe <joe@joelightning.com>2012-03-26 07:41:10 +0100
commit76f1bfe674e370ff4609c6e8d9b8010d7a0591bc (patch)
treeeb462a8983416f16650b65861f3c0980d3392051
parentad85b0ec273a1c0a1d3e228cabdc98dcef387587 (diff)
fixed bug of him repeating everything that's said.
-rw-r--r--hack_of_all_hacks6
1 files 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