#! perl cf::register_command chat => 0, sub { my ($who, $msg) = @_; if ($msg) { my $name = $who->name; $_->ob->message ("$name chats: $msg", cf::NDI_BLUE) for grep !$player->ob->{ext_ignore_shout}, cf::player::list; } else { $who->message ("Chat what?", cf::NDI_UNIQUE); } }; cf::register_command shout => 0, sub { my ($who, $msg) = @_; if ($msg) { my $name = $who->name; $_->ob->message ("$name shouts: $msg", cf::NDI_RED) for grep !$player->ob->{ext_ignore_shout}, cf::player::list; } else { $who->message ("Shout what?", cf::NDI_UNIQUE); } };