Permalink
Browse files

- Fixed a SVSMOTD crashbug (removing of motd).

--HG--
branch : devel
  • Loading branch information...
1 parent ac0fbd7 commit f687fb9a5036c7b2c138c52bfadec1d6db4ae761 syzop committed Sep 7, 2003
Showing with 7 additions and 2 deletions.
  1. +1 −0 Changes
  2. +6 −2 src/modules/m_svsmotd.c
View
@@ -2411,3 +2411,4 @@ seen. gmtime warning still there
- Fixed a typo where /knock would say the channel is +I if +V is set, reported by Certus
- Improved SSL error msg sent to junk snomask.
- Fixed Q:lined nickname msgs during linking and a debug fix.
+- Fixed a SVSMOTD crashbug (removing of motd).
View
@@ -141,8 +141,12 @@ int m_svsmotd(aClient *cptr, aClient *sptr, int parc, char *parv[])
default:
return 0;
}
- sendto_serv_butone_token(cptr, parv[0], MSG_SVSMOTD, TOK_SVSMOTD,
- "%s :%s", parv[1], parv[2]);
+ if (parv[2])
+ sendto_serv_butone_token(cptr, parv[0], MSG_SVSMOTD, TOK_SVSMOTD,
+ "%s :%s", parv[1], parv[2]);
+ else
+ sendto_serv_butone_token(cptr, parv[0], MSG_SVSMOTD, TOK_SVSMOTD,
+ "%s", parv[1]);
if (conf == NULL)
{

0 comments on commit f687fb9

Please sign in to comment.