diff options
author | Joseph Graham <joseph@fibreglass.tunachunks> | 2013-07-28 12:50:24 +0100 |
---|---|---|
committer | Joseph Graham <joseph@fibreglass.tunachunks> | 2013-07-28 12:50:24 +0100 |
commit | ce9c607c9ab07a7fc8b3838cf0bc5991af3862d0 (patch) | |
tree | c08e35523b66129b4b1969c87e04406fb73aed77 | |
parent | 8884e1fe82dbca61b9bbc6c0decc5c63d48292c9 (diff) |
fixed bug that was causing it to not add things that had a space in the description
-rw-r--r-- | hack_of_all_hacks | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hack_of_all_hacks b/hack_of_all_hacks index bde6553..d908016 100644 --- a/hack_of_all_hacks +++ b/hack_of_all_hacks @@ -225,7 +225,7 @@ EOF response=$(shuf -e 'certainly' 'I will do' 'OK' | head -1) send_msg "${channel_it_came_from}" "${personoslash}: ${response}" ;; - "pbot: "+([![:space:]])" is "+([![:space:]]) ) + "pbot: "+([![:space:]])" is "+([![:space:]])* ) thing="${sentence#pbot: }" thing="${thing%% is *}" is="${sentence#* is }" @@ -233,7 +233,7 @@ EOF echo "${is}" >> "info/${thing}" send_msg "${channel_it_came_from}" "${personoslash}: Remembered." ;; - "pbot: "+([![:space:]])" isn't "+([![:space:]]) ) + "pbot: "+([![:space:]])" isn't "+([![:space:]])* ) thing="${sentence#pbot: }" thing="${thing%% isn\'t *}" isnt="${sentence#* isn\'t }" |