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.5 by root, Sun May 7 08:10:23 2006 UTC vs.
Revision 1.6 by pippijn, Sun May 7 08:24:50 2006 UTC

1#! perl 1#! perl
2 2
3# implement a replacement for the built-in chat/shout/tell/reply commands 3# implement a replacement for the built-in chat/shout/tell/reply commands
4# adds ignore/unignore functionality 4# adds ignore/unignore functionality
5 5
6cf::register_command chat => 0, sub 6cf::register_command chat => 0, sub {
7{
8 my ($who, $msg) = @_; 7 my ($who, $msg) = @_;
9 8
10 if ($msg) { 9 if ($msg) {
11 my $name = $who->name; 10 my $name = $who->name;
12 11
16 } else { 15 } else {
17 $who->message ("Chat what?", cf::NDI_UNIQUE); 16 $who->message ("Chat what?", cf::NDI_UNIQUE);
18 } 17 }
19}; 18};
20 19
21cf::register_command shout => 0, sub 20cf::register_command shout => 0, sub {
22{
23 my ($who, $msg) = @_; 21 my ($who, $msg) = @_;
24 22
25 if ($msg) { 23 if ($msg) {
26 my $name = $who->name; 24 my $name = $who->name;
27 25

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines