Always treat NOTICEs received before registration as local server notices

We don't know the server's proper name until registration, so the test against
that isn't reliable.  We shouldn't be able to receive messages from anyone else
until we're registered, so this should be safe.

This requires changing serversay() to accept the from name instead of the
from_server.  While we're there, replace the use of alloca() with simpler
logic based on m_sprintf().
This commit is contained in:
Kevin Easton
2016-04-06 22:50:28 +10:00
parent d19c050837
commit 1f64201362
4 changed files with 73 additions and 71 deletions

View File

@@ -22,7 +22,7 @@
void say (const char *, ...);
void BX_bitchsay (const char *, ...);
void serversay (int, int, const char *, ...);
void serversay (int, const char *, const char *, ...);
void BX_yell (const char *, ...);
void error (const char *, ...);