[NeoStats-Devel] [Commits] r365 - branches/3.0
[email protected] Sat, 13 Aug 2005 19:42:22 +1000
| Newsgroups | gmane.comp.neostats.devel |
|---|---|
| Message-ID | <[email protected]> |
Author: Fish
Date: Sat Aug 13 17:42:15 2005
New Revision: 365
Modified:
branches/3.0/scan.c
Log:
fix crash on empty quit message
Modified: branches/3.0/scan.c
==============================================================================
--- branches/3.0/scan.c (original)
+++ branches/3.0/scan.c Sat Aug 13 17:42:15 2005
@@ -412,8 +412,12 @@
int ScanQuitMsg(Client* u, char* buf)
{
- strip_mirc_codes(buf);
- return Scan(DET_QUITMSG, u, buf);
+ if (buf) {
+ strip_mirc_codes(buf);
+ return Scan(DET_QUITMSG, u, buf);
+ } else {
+ return NS_SUCCESS;
+ }
}
int ScanTopic(Client* u, char* buf)