… | |
… | |
4 | my ($who, $msg) = @_; |
4 | my ($who, $msg) = @_; |
5 | |
5 | |
6 | if ($msg) { |
6 | if ($msg) { |
7 | my $name = $who->name; |
7 | my $name = $who->name; |
8 | |
8 | |
9 | for my $player (cf::player::list) { |
|
|
10 | unless ($player->ob->{ext_ignore_shout}) { |
|
|
11 | $player->ob->message ("$name chats: $msg", cf::NDI_BLUE); |
9 | $_->ob->message ("$name chats: $msg", cf::NDI_BLUE) |
12 | } |
10 | for grep !$player->ob->{ext_ignore_shout}, cf::player::list; |
13 | } |
11 | |
14 | } else { |
12 | } else { |
15 | $who->message ("Chat what?", cf::NDI_UNIQUE); |
13 | $who->message ("Chat what?", cf::NDI_UNIQUE); |
16 | } |
14 | } |
17 | }; |
15 | }; |
18 | |
16 | |
… | |
… | |
21 | my ($who, $msg) = @_; |
19 | my ($who, $msg) = @_; |
22 | |
20 | |
23 | if ($msg) { |
21 | if ($msg) { |
24 | my $name = $who->name; |
22 | my $name = $who->name; |
25 | |
23 | |
26 | for my $player (cf::player::list) { |
|
|
27 | unless ($player->ob->{ext_ignore_shout}) { |
|
|
28 | $player->ob->message ("$name shouts: $msg", cf::NDI_RED); |
24 | $_->ob->message ("$name shouts: $msg", cf::NDI_RED) |
29 | } |
25 | for grep !$player->ob->{ext_ignore_shout}, cf::player::list; |
30 | } |
26 | |
31 | } else { |
27 | } else { |
32 | $who->message ("Shout what?", cf::NDI_UNIQUE); |
28 | $who->message ("Shout what?", cf::NDI_UNIQUE); |
33 | } |
29 | } |
34 | |
30 | |
35 | }; |
31 | }; |