summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Changes1
-rw-r--r--src/ircd.c10
-rw-r--r--version.log6
3 files changed, 12 insertions, 5 deletions
diff --git a/Changes b/Changes
index 6b35127d4..9a55c7de3 100644
--- a/Changes
+++ b/Changes
@@ -7,6 +7,7 @@ Provided by Anope Dev. <dev@anope.org> - 2005
07/01 A Events for channel access/xop updates. [ #00]
06/26 A New module pack module: hs_request. [ #00]
06/03 A Protocol files can now fill mod_current_buffer with custom code. [#389]
+08/29 F Pseudo-clients can now part with no instead of an empty reason. [ #00]
08/29 F Memory leak when using mysql to save data. [ #00]
08/29 F Organised docs/FAQ a bit more and slightly restyled it. [ #00]
08/25 F Compiler warnings in tools with gcc4. [ #00]
diff --git a/src/ircd.c b/src/ircd.c
index d40b9968c..d04393086 100644
--- a/src/ircd.c
+++ b/src/ircd.c
@@ -326,15 +326,17 @@ void anope_cmd_invite(char *source, char *chan, char *nick)
void anope_cmd_part(char *nick, char *chan, const char *fmt, ...)
{
- va_list args;
- char buf[BUFSIZE];
- *buf = '\0';
if (fmt) {
+ va_list args;
+ char buf[BUFSIZE];
+ *buf = '\0';
va_start(args, fmt);
vsnprintf(buf, BUFSIZE - 1, fmt, args);
va_end(args);
+ ircdproto.ircd_cmd_part(nick, chan, buf);
+ } else {
+ ircdproto.ircd_cmd_part(nick, chan, NULL);
}
- ircdproto.ircd_cmd_part(nick, chan, buf);
}
void anope_cmd_391(char *source, char *timestr)
diff --git a/version.log b/version.log
index 43714f331..5a0aea4e5 100644
--- a/version.log
+++ b/version.log
@@ -8,10 +8,14 @@
VERSION_MAJOR="1"
VERSION_MINOR="7"
VERSION_PATCH="10"
-VERSION_BUILD="858"
+VERSION_BUILD="862"
# $Log$
#
+# BUILD : 1.7.10 (862)
+# BUGS :
+# NOTES : Fixed anope_cmd_part passing on "\0" instead of NULL when given NULL-arg
+#
# BUILD : 1.7.10 (858)
# BUGS :
# NOTES : Converted docs/FAQ to a more organized format