Permalink
Browse files

Worked around a bug causing the bot to crash when entering a channel

  • Loading branch information...
Jarrod
Jarrod committed Dec 18, 2010
1 parent 1eaae4b commit 55300bd8e8b0b286f97c32ead66b3ef756cb9951
Showing with 1 addition and 4 deletions.
  1. +0 −3 .gitignore
  2. +1 −1 Net/IRC/DefaultHandlers.pm
View
@@ -1,3 +0,0 @@
-DESIGNDOCS
-test.p6
-P6bot.pl
@@ -56,7 +56,7 @@ class Net::IRC::DefaultHandlers {
#353: User list for newly joined channel
multi method irc_353($ev) {
$ev.state{'channels'}{ ~$ev.raw<params>[2] } =
- %( $ev.what.comb(/<-space - [\+\%\@\&\~]>+/) >>=>>> 1 );
+ %( $ev.what.split(' ')>>.subst(/^[\+\%\@\&\~]/, '') >>=>>> 1 );
}
multi method irc_kick($ev) {

0 comments on commit 55300bd

Please sign in to comment.