ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/maps/perl/chat.ext
(Generate patch)

Comparing deliantra/maps/perl/chat.ext (file contents):
Revision 1.37 by pippijn, Sun Sep 17 23:57:20 2006 UTC vs.
Revision 1.38 by pippijn, Mon Sep 18 00:14:48 2006 UTC

169 169
170 if ($target =~ /irc\//) { 170 if ($target =~ /irc\//) {
171 my (undef, $nick) = split /\//, $target, 2; 171 my (undef, $nick) = split /\//, $target, 2;
172 $who->message ("You tell $target: $args"); 172 $who->message ("You tell $target: $args");
173 ext::schmorp_irc::do_notice (sprintf "(%s) %s: %s\n", $name, $nick, $msg); 173 ext::schmorp_irc::do_notice (sprintf "(%s) %s: %s\n", $name, $nick, $msg);
174 }
175
176 elsif (my $other = cf::player::find $target) { 174 } elsif (my $other = cf::player::find $target) {
177 175
178 if ($msg) { 176 if ($msg) {
179 if ($target eq $name) { 177 if ($target eq $name) {
180 $who->message ("You are talking to yourself, you freak!", cf::NDI_UNIQUE); 178 $who->message ("You are talking to yourself, you freak!", cf::NDI_UNIQUE);
181 } elsif ($other->ob->{ext_ignore_tell}{$name} >= time) { 179 } elsif ($other->ob->{ext_ignore_tell}{$name} >= time) {
207 205
208 if ($who->{ext_last_tell} =~ /irc\//) { 206 if ($who->{ext_last_tell} =~ /irc\//) {
209 my (undef, $nick) = split /\//, $who->{ext_last_tell}, 2; 207 my (undef, $nick) = split /\//, $who->{ext_last_tell}, 2;
210 $who->message ("You tell " . $who->{ext_last_tell} . ": $args"); 208 $who->message ("You tell " . $who->{ext_last_tell} . ": $args");
211 ext::schmorp_irc::do_notice (sprintf "(%s) %s: %s\n", $name, $nick, $args); 209 ext::schmorp_irc::do_notice (sprintf "(%s) %s: %s\n", $name, $nick, $args);
212 }
213
214 elsif (my $other = cf::player::find $who->{ext_last_tell}) { 210 } elsif (my $other = cf::player::find $who->{ext_last_tell}) {
215 211
216 if ($args) { 212 if ($args) {
217 $other->ob->{ext_ignore_tell}{$name} >= time 213 $other->ob->{ext_ignore_tell}{$name} >= time
218 or delete $other->ob->{ext_ignore_tell}{$name}; 214 or delete $other->ob->{ext_ignore_tell}{$name};
219 215

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines