]> ruin.nu Git - NDIRC.git/blobdiff - Bot.pm
Converted Channel to new infrastructure
[NDIRC.git] / Bot.pm
diff --git a/Bot.pm b/Bot.pm
index 823daaca3f3096e54c3a405ba66d86fbf03ace6f..53cdf94a0cf5cc983d64bf8d04a937e99cf5e802 100644 (file)
--- 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;
@@ -32,6 +33,7 @@ use POE::Component::IRC::Plugin::AutoJoin;
 use POE::Component::IRC::Plugin::NickReclaim;
 
 use NDIRC::Dispatcher;
+use NDIRC::Context;
 
 use IO::File;
 
@@ -79,6 +81,7 @@ sub _start {
                Sort_by_date => 1,
                Strip_color => 1,
                Strip_formatting => 1,
+               Notices => 1,
        ));
 
        $heap->{connector} = POE::Component::IRC::Plugin::Connector->new(
@@ -203,9 +206,11 @@ sub irc_invite {
 }
 
 sub irc_public {
+       $_[ARG2] = irc_to_utf8 $_[ARG2];
 }
 
 sub irc_msg {
+       $_[ARG2] = irc_to_utf8 $_[ARG2];
 }
 
 sub  refresh {