summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 >:(