Subject: | user mode messages parsed incorrectly |
hi!
i wrote a small bot that connects to a channel, and does nothing but listen to the events.
if another user of the channel gives "op" to the bot (or changes any mode of the bot) the irc-server sends the line:
(stoffi__ = name of the bot)
":stoffi!cl@null.tix.at MODE #blafasl +o stoffi__"
(without quotes)
this line does not match the regular expression in
Line 1119 of Connection.pm function parse():
($from, $line) = $line =~ m/^(\S+\s.*?):(.*)$/;
-> and leads to carp "Unknown event type: $type"; to be executed.
the server i connected to was
13:38 -!- Your host is linz.irc.at, running version 2.10.3p3+hemp+linz
13:38 -!- This server was created Fri Oct 18 2002 at 22:37:29 CEST
cu stoffi