… | |
… | |
35 | |
35 | |
36 | sub handle_fcmd { |
36 | sub handle_fcmd { |
37 | my ($name, $me, $msg) = @_; |
37 | my ($name, $me, $msg) = @_; |
38 | |
38 | |
39 | if ($msg eq "!who") { |
39 | if ($msg eq "!who") { |
|
|
40 | # clobbers irc, http is available |
|
|
41 | do_notice "see http://cf.schmorp.de/userlist.crossfire.schmorp.de.html"; |
40 | do_notice $_ |
42 | # do_notice $_ |
41 | for ext::commands::who_listing (); |
43 | # for ext::commands::who_listing (0, "."); |
42 | |
44 | |
43 | } elsif ($msg =~ /^\!tell/) { |
45 | } elsif ($msg =~ /^\!tell/) { |
44 | my (undef, $target, $tmsg) = split / /, $msg, 3; |
46 | my (undef, $target, $tmsg) = split / /, $msg, 3; |
45 | |
47 | |
46 | if (my $other = cf::player::find_active $target) { |
48 | if (my $other = cf::player::find_active $target) { |
… | |
… | |
85 | utf8::decode $tmsg; |
87 | utf8::decode $tmsg; |
86 | |
88 | |
87 | if ($tmsg =~ /^\!/) { |
89 | if ($tmsg =~ /^\!/) { |
88 | handle_fcmd ($name, $nick, $tmsg); |
90 | handle_fcmd ($name, $nick, $tmsg); |
89 | } elsif ($tmsg =~ m/\S/) { |
91 | } elsif ($tmsg =~ m/\S/) { |
90 | $_->ns->send_msg ($cf::chat::CHAT_CHANNEL, |
92 | $_->ns->send_msg ($ext::chat::CHAT_CHANNEL, |
91 | "$name/".$nick." chats: $tmsg", cf::NDI_BLUE | cf::NDI_DEF |
93 | "$name/".$nick." chats: $tmsg", cf::NDI_BLUE | cf::NDI_DEF |
92 | ) for grep { $_->ob->{ext_ignore_shout}{$name} < $NOW && $_->listening >= 10 } cf::player::list; |
94 | ) for grep { $_->ob->{ext_ignore_shout}{$name} < $NOW && $_->listening >= 10 } cf::player::list; |
93 | } |
95 | } |
94 | 1; |
96 | 1; |
95 | }, |
97 | }, |