1
0
mirror of https://github.com/anope/anope.git synced 2026-07-10 21:23:13 +02:00

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
This commit is contained in:
mark mark@31f1291d-b8d6-0310-a050-a5561fc1590b
2008-01-09 14:11:35 +00:00
parent c9ce8f3df3
commit 2f79c36305
3 changed files with 9 additions and 2 deletions
+3 -1
View File
@@ -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)