ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/ext/irc.ext
(Generate patch)

Comparing deliantra/server/ext/irc.ext (file contents):
Revision 1.11 by root, Fri May 2 16:09:36 2008 UTC vs.
Revision 1.13 by root, Fri Aug 29 23:31:41 2008 UTC

5 5
6# requires: commands.ext 6# requires: commands.ext
7 7
8return unless exists $cf::CFG{irc_server}; 8return unless exists $cf::CFG{irc_server};
9 9
10my $BOTSERVER = $cf::CFG{irc_server}; 10my $BOTSERVER = $cf::CFG{irc_server} || "localhost";
11my $BOTPORT = $cf::CFG{irc_port}; 11my $BOTPORT = $cf::CFG{irc_port} || 6667;
12my $BOTNAME = $cf::CFG{irc_nick}; 12my $BOTNAME = $cf::CFG{irc_nick} || "server";
13my $BOTCHAN = $cf::CFG{irc_chan}; 13my $BOTCHAN = $cf::CFG{irc_chan} || "cf";
14 14
15my $CON; # the connection 15my $CON; # the connection
16 16
17sub unload { 17sub unload {
18 $CON->disconnect if $CON; 18 $CON->disconnect if $CON;
89 if ($tmsg =~ /^\!/) { 89 if ($tmsg =~ /^\!/) {
90 handle_fcmd ($name, $nick, $tmsg); 90 handle_fcmd ($name, $nick, $tmsg);
91 } elsif ($tmsg =~ m/\S/) { 91 } elsif ($tmsg =~ m/\S/) {
92 $_->ns->send_msg ($cf::CHAT_CHANNEL, 92 $_->ns->send_msg ($cf::CHAT_CHANNEL,
93 "$name/".$nick." chats: $tmsg", cf::NDI_BLUE | cf::NDI_DEF 93 "$name/".$nick." chats: $tmsg", cf::NDI_BLUE | cf::NDI_DEF
94 ) for grep { $_->ob->{ext_ignore_shout}{$name} < $NOW && $_->listening >= 10 } cf::player::list; 94 ) for grep { $_->ob->{ext_ignore_shout}{$name} < $NOW } cf::player::list;
95 cf::LOG cf::llevDebug, sprintf "QBERT [%s] %s\n", "$name/$nick", $tmsg; 95 cf::LOG cf::llevDebug, sprintf "QBERT [%s] %s\n", "$name/$nick", $tmsg;
96 } 96 }
97 1; 97 1;
98 }, 98 },
99# registered => sub { 99# registered => sub {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines