--- deliantra/server/ext/chat.ext 2007/07/20 16:11:10 1.21 +++ deliantra/server/ext/chat.ext 2007/07/22 14:17:57 1.22 @@ -7,6 +7,20 @@ use NPC_Dialogue; use POSIX (); # for strftime only +our $SAY_CHANNEL = { + id => "say", + title => "Map", + reply => "say ", + tooltip => "Things said to and replied from npcs near you and other players on the same map only.", +}; + +our $CHAT_CHANNEL = { + id => "chat", + title => "Chat", + reply => "chat ", + tooltip => "Player chat and shouts, global to the server.", +}; + sub clean_timeouts($) { my ($player) = @_; my $NOW = time; @@ -40,6 +54,8 @@ my ($pl) = @_; clean_timeouts $pl->ob; + $pl->ns->send_msg ($SAY_CHANNEL); + $pl->ns->send_msg ($CHAT_CHANNEL); }, ); @@ -748,13 +764,6 @@ }; } -our $SAY_CHANNEL = { - id => "say", - title => "Map", - reply => "say ", - tooltip => "Things said to and replied from npcs near you and other players on the same map only.", -}; - cf::register_command me => sub { my ($pl, $msg) = @_; @@ -823,13 +832,6 @@ } }; -our $CHAT_CHANNEL = { - id => "chat", - title => "Chat", - reply => "chat ", - tooltip => "Player chat and shouts, global to the server.", -}; - cf::register_command chat => sub { my ($pl, $msg) = @_;