X-Git-Url: https://ruin.nu/git/%3CTMPL_VAR%20NAME=PAGE%3E?a=blobdiff_plain;f=Bot.pm;h=dde08adc2b42ff6dc1acaf027b51f686ef990905;hb=06eb99af20cebc85b1f609becb125b4dc32bf8ff;hp=ccc322941e6ba80c2dcf50c6f68576d0accf67d3;hpb=87ddd7d37d6f5880757a71bfedd3459f4a511d2b;p=NDIRC.git diff --git a/Bot.pm b/Bot.pm index ccc3229..dde08ad 100644 --- a/Bot.pm +++ b/Bot.pm @@ -24,6 +24,7 @@ use feature ':5.10'; use Moose; +use POE::Component::IRC::Common qw/irc_to_utf8/; use POE::Session; use POE::Component::IRC::Plugin::Logger; use POE::Component::IRC::Plugin::BotTraffic; @@ -79,11 +80,12 @@ sub _start { Sort_by_date => 1, Strip_color => 1, Strip_formatting => 1, + Notices => 1, )); $heap->{connector} = POE::Component::IRC::Plugin::Connector->new( - servers => ['irc.netgamers.org', 'underworld.no.eu.netgamers.org' - ,'firefly.no.eu.netgamers.org', 'underworld.ca.us.netgamers.org' ] + servers => [['irc.netgamers.org'], ['underworld.no.eu.netgamers.org'] + ,['firefly.no.eu.netgamers.org'], ['underworld.ca.us.netgamers.org'] ] ); $irc->plugin_add( 'Connector' => $heap->{connector} ); @@ -203,9 +205,11 @@ sub irc_invite { } sub irc_public { + $_[ARG2] = irc_to_utf8 $_[ARG2]; } sub irc_msg { + $_[ARG2] = irc_to_utf8 $_[ARG2]; } sub refresh {