diff options
author | mark mark@31f1291d-b8d6-0310-a050-a5561fc1590b <mark mark@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-01-09 14:11:35 +0000 |
---|---|---|
committer | mark mark@31f1291d-b8d6-0310-a050-a5561fc1590b <mark mark@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-01-09 14:11:35 +0000 |
commit | 2f79c363053cdd0bf2c625f3997f8b872654c3c7 (patch) | |
tree | 49c2a9052ad2fdcb3e171bc68632afe7399e71fb /src | |
parent | c9ce8f3df31d1039a0113b8c46e1d99cbe67f1a6 (diff) |
BUILD : 1.7.20 (1338) BUGS : 821 NOTES : Temporary patch for the crash in inspircd_cmd_mode()
git-svn-id: svn://svn.anope.org/anope/trunk@1338 31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1054 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
-rw-r--r-- | src/protocol/inspircd11.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/protocol/inspircd11.c b/src/protocol/inspircd11.c index e55eaeb56..fcd96e7e8 100644 --- a/src/protocol/inspircd11.c +++ b/src/protocol/inspircd11.c @@ -613,11 +613,13 @@ inspircd_cmd_guest_nick(char *nick, char *user, char *host, void inspircd_cmd_mode(char *source, char *dest, char *buf) { + Channel *c; if (!buf) { return; } - send_cmd(source ? source : s_OperServ, "FMODE %s %u %s", dest, (unsigned int)findchan(dest)->creation_time, buf); + c = findchan(dest); + send_cmd(source ? source : s_OperServ, "FMODE %s %u %s", dest, (unsigned int)((c) ? c->creation_time : time(NULL)), buf); } int anope_event_version(char *source, int ac, char **av) |