forked from tilderadio/radiobot
forgot some stuff
This commit is contained in:
parent
d7cf3771c6
commit
50115e9552
3
bot.sh
3
bot.sh
|
@ -67,9 +67,12 @@ do
|
|||
# "#" would mean it's a channel
|
||||
if [ "$(echo "$from" | grep '^#')" ]; then
|
||||
test "$(echo "$res" | grep ":$nick:")" || continue
|
||||
will=$(echo "$res" | perl -pe "s/.*:$nick:(.*)/\1/")
|
||||
else
|
||||
will=$(echo "$res" | perl -pe "s/.*$nick :(.*)/\1/")
|
||||
from=$who
|
||||
fi
|
||||
will=$(echo "$will" | perl -pe "s/^ //")
|
||||
com=$(echo "$will" | cut -d " " -f1)
|
||||
|
||||
case "$com" in
|
||||
|
|
Loading…
Reference in New Issue