Skip to content

Commit

Permalink
Added player_message back
Browse files Browse the repository at this point in the history
  • Loading branch information
greghaynes committed Jul 21, 2010
1 parent 3bfc17e commit 5299a81
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/fpsgame/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1960,11 +1960,15 @@ namespace server

case N_TEXT:
{
QUEUE_AI;
QUEUE_MSG;
getstring(text, p);
filtertext(text, text);
QUEUE_STR(text);
if(SbPy::triggerPolicyEventIntString("allow_message", ci->clientnum, text))
{
SbPy::triggerEventIntString("player_message", ci->clientnum, text);
QUEUE_AI;
QUEUE_MSG;
QUEUE_STR(text);
}
break;
}

Expand Down

0 comments on commit 5299a81

Please sign in to comment.