forked from tilderadio/radiobot
wow just wow
This commit is contained in:
parent
50115e9552
commit
77f2b32508
2
bot.sh
2
bot.sh
|
@ -58,7 +58,7 @@ do
|
||||||
;;
|
;;
|
||||||
|
|
||||||
# run when a message is seen
|
# run when a message is seen
|
||||||
PRIVMSG*)
|
*PRIVMSG*)
|
||||||
echo "$res"
|
echo "$res"
|
||||||
who=$(echo "$res" | perl -pe "s/:(.*)\!.*@.*/\1/")
|
who=$(echo "$res" | perl -pe "s/:(.*)\!.*@.*/\1/")
|
||||||
from=$(echo "$res" | perl -pe "s/.*PRIVMSG (.*[#]?([a-zA-Z]|\-)*) :.*/\1/")
|
from=$(echo "$res" | perl -pe "s/.*PRIVMSG (.*[#]?([a-zA-Z]|\-)*) :.*/\1/")
|
||||||
|
|
Loading…
Reference in New Issue