summaryrefslogtreecommitdiff
path: root/hack_of_all_hacks
diff options
context:
space:
mode:
authorJoe <joe@joelightning.com>2012-03-26 08:34:42 +0100
committerJoe <joe@joelightning.com>2012-03-26 08:34:42 +0100
commitca40095a72f41ee967d48e30645d931e53aba7c1 (patch)
tree8d8a8db2b2ddbfaff70dc376cee5267a7210420f /hack_of_all_hacks
parent76f1bfe674e370ff4609c6e8d9b8010d7a0591bc (diff)
re-arranged the code a bit to make it more tidy.
Diffstat (limited to 'hack_of_all_hacks')
-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 62a0f6e..80e79b1 100644
--- a/hack_of_all_hacks
+++ b/hack_of_all_hacks
@@ -15,6 +15,9 @@ function l33t_codes
person="${sender%%!*}"
+ # Remove any forward slashes.
+ personoslash="${person//\/}"
+
######################
# Echo injected data #
######################
@@ -26,9 +29,6 @@ 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}"