diff options
-rw-r--r-- | Changes | 1 | ||||
-rw-r--r-- | src/channels.c | 10 | ||||
-rw-r--r-- | version.log | 6 |
3 files changed, 14 insertions, 3 deletions
@@ -10,6 +10,7 @@ Provided by Anope Dev. <dev@anope.org> - 2006 02/19 F Fixed position of EVENT_ACCESS_DEL. [ #00] 03/01 F Fixed ident check on /bs bot change. [#463] 03/01 F Fixed # prefix check on /cs forbid. [#461] +03/01 F Fixed events on /join 0. [#417] Provided by nenolod. <nenolod@nenolod.net> - 2006 02/03 A Support for Charybdis IRCd. [ #00] diff --git a/src/channels.c b/src/channels.c index f2614b799..ac48644d2 100644 --- a/src/channels.c +++ b/src/channels.c @@ -523,6 +523,7 @@ void do_join(const char *source, int ac, char **av) Channel *chan; char *s, *t; struct u_chanlist *c, *nextc; + char *channame; if (UseTS6 && ircd->ts6) { user = find_byuid(source); @@ -545,13 +546,15 @@ void do_join(const char *source, int ac, char **av) if (debug) alog("debug: %s joins %s", source, s); - send_event(EVENT_JOIN_CHANNEL, 3, EVENT_START, source, s); - if (*s == '0') { c = user->chans; while (c) { nextc = c->next; + channame = sstrdup(c->chan->name); + send_event(EVENT_PART_CHANNEL, 3, EVENT_START, user->nick, channame); chan_deluser(user, c->chan); + send_event(EVENT_PART_CHANNEL, 3, EVENT_STOP, user->nick, channame); + free(channame); free(c); c = nextc; } @@ -559,6 +562,9 @@ void do_join(const char *source, int ac, char **av) continue; } + /* how about not triggering the JOIN event on an actual /part :) -certus */ + send_event(EVENT_JOIN_CHANNEL, 3, EVENT_START, source, s); + /* Make sure check_kick comes before chan_adduser, so banned users * don't get to see things like channel keys. */ if (check_kick(user, s)) diff --git a/version.log b/version.log index bbcd9d872..82d24ceb8 100644 --- a/version.log +++ b/version.log @@ -9,10 +9,14 @@ VERSION_MAJOR="1" VERSION_MINOR="7" VERSION_PATCH="13" VERSION_EXTRA="-svn" -VERSION_BUILD="977" +VERSION_BUILD="978" # $Log$ # +# BUILD : 1.7.13 (978) +# BUGS : 417 +# NOTES : fixed events on /join 0. +# # BUILD : 1.7.13 (977) # BUGS : 461 463 # NOTES : happy bug-fixing-day to all of you. |