summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormark 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
committermark 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
commit2f79c363053cdd0bf2c625f3997f8b872654c3c7 (patch)
tree49c2a9052ad2fdcb3e171bc68632afe7399e71fb
parentc9ce8f3df31d1039a0113b8c46e1d99cbe67f1a6 (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
-rw-r--r--Changes1
-rw-r--r--src/protocol/inspircd11.c4
-rw-r--r--version.log6
3 files changed, 9 insertions, 2 deletions
diff --git a/Changes b/Changes
index da75eb838..ad4459383 100644
--- a/Changes
+++ b/Changes
@@ -1,5 +1,6 @@
Anope Version S V N
--------------------
+01/09 F InspIRCd crash on certain FMODE sends [#821]
12/30 F Grouped root nicks could result in loss of power when using MySQL.[#812]
01/01 F Databases not being saved on quit caused by connection error. [#811]
01/05 F Re-idenficiation after netsplit on InspIRCd. [#817]
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)
diff --git a/version.log b/version.log
index a8d36d722..54902cb3a 100644
--- a/version.log
+++ b/version.log
@@ -9,10 +9,14 @@ VERSION_MAJOR="1"
VERSION_MINOR="7"
VERSION_PATCH="20"
VERSION_EXTRA="-svn"
-VERSION_BUILD="1337"
+VERSION_BUILD="1338"
# $Log$
#
+# BUILD : 1.7.20 (1338)
+# BUGS : 821
+# NOTES : Temporary patch for the crash in inspircd_cmd_mode()
+#
# BUILD : 1.7.20 (1337)
# BUGS :
# NOTES : Updating something in NEWS, just because i want r1337 instead of letting mark have it >:(