From 4cd9d79557331074d4d469679b21266a9cf81039 Mon Sep 17 00:00:00 2001 From: Joseph Graham Date: Thu, 29 Sep 2016 22:34:01 +0100 Subject: Fixed extremely specific bug Fixed bug where Emulatorman puts two spaces in-between ${username}: and ${message}, instead of one, and pbot doesn't recognise the command. N.B. the code here is still aweful because he won't handle other cases such as, for example; the user puts no space at all. And the other commands still have this bug. --- hack_of_all_hacks | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack_of_all_hacks b/hack_of_all_hacks index 7b55b63..547b64c 100644 --- a/hack_of_all_hacks +++ b/hack_of_all_hacks @@ -287,7 +287,7 @@ function l33t_codes # tell # ######## - "${my_own_name}: tell "+([![:space:]])": "+([![:space:]])* ) + "${my_own_name}: tell "+([![:space:]])":"+([[:space:]])+([![:space:]])* ) # The line will be something such as: # pbot: tell fauno: you suck process="${sentence##${my_own_name}: tell }" -- cgit v1.2.3