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

Comparing deliantra/server/ext/schmorp-irc.ext (file contents):
Revision 1.1 by root, Fri Dec 15 19:29:18 2006 UTC vs.
Revision 1.5 by elmex, Fri Feb 9 23:32:13 2007 UTC

39 for ext::commands::who_listing (); 39 for ext::commands::who_listing ();
40 40
41 } elsif ($msg =~ /^\!tell/) { 41 } elsif ($msg =~ /^\!tell/) {
42 my (undef, $target, $tmsg) = split / /, $msg, 3; 42 my (undef, $target, $tmsg) = split / /, $msg, 3;
43 43
44 if (my $other = cf::player::find $target) { 44 if (my $other = cf::player::find_active $target) {
45 45
46 if ($tmsg) { 46 if ($tmsg) {
47 if ($me eq $target) { 47 if ($me eq $target) {
48 $CON->send_chan ($BOTCHAN, NOTICE => "$me: You are talking to yourself, you freak!", $BOTCHAN); 48 $CON->send_chan ($BOTCHAN, NOTICE => "$me: You are talking to yourself, you freak!", $BOTCHAN);
49 } elsif ($other->ob->{ext_ignore_tell}{$me} >= time) { 49 } elsif ($other->ob->{ext_ignore_tell}{$me} >= time) {
91 }, 91 },
92# registered => sub { 92# registered => sub {
93# 1; 93# 1;
94# }, 94# },
95 disconnect => sub { 95 disconnect => sub {
96 my ($con, $reason) = @_;
97 warn "CFBOT: disconnect: $reason\n";
96 undef $CON; 98 undef $CON;
97 0; 99 0;
98 } 100 }
99 ); 101 );
100} 102}
101 103
102Event->timer (after => 1, interval => 30, data => cf::WF_AUTOCANCEL, cb => \&check_connection); 104Event->timer (
105 reentrant => 0,
106 after => 1,
107 interval => 30,
108 data => cf::WF_AUTOCANCEL,
109 cb => Coro::unblock_sub { check_connection },
110);
103 111

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines