diff options
| author | certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b <certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2006-07-14 17:38:00 +0000 |
|---|---|---|
| committer | certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b <certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2006-07-14 17:38:00 +0000 |
| commit | cc34de2be6207c2f8a6466c76d89a7952e2e6d0c (patch) | |
| tree | 3a35eee1f34d49605fcecfc284d05612124ff211 /src/channels.c | |
| parent | 18c0fe03fc7688a739ac7cb69717cabe23df872b (diff) | |
# BUILD : 1.7.14 (1087) # BUGS : 545 550 541 # NOTES : Various fixes.
git-svn-id: svn://svn.anope.org/anope/trunk@1087 31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@811 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/channels.c')
| -rw-r--r-- | src/channels.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/channels.c b/src/channels.c index f174eb54f..bce64bd4c 100644 --- a/src/channels.c +++ b/src/channels.c @@ -670,8 +670,8 @@ void do_part(const char *source, int ac, char **av) return; } channame = sstrdup(c->chan->name); - send_event(EVENT_PART_CHANNEL, 3, EVENT_START, user->nick, - channame); + send_event(EVENT_PART_CHANNEL, (ac >= 2 ? 4 : 3), EVENT_START, user->nick,
+ channame, (ac >= 2 ? av[1] : "")); chan_deluser(user, c->chan); if (c->next) @@ -682,8 +682,8 @@ void do_part(const char *source, int ac, char **av) user->chans = c->next; free(c); - send_event(EVENT_PART_CHANNEL, 3, EVENT_STOP, user->nick, - channame); + send_event(EVENT_PART_CHANNEL, (ac >= 2 ? 4 : 3), EVENT_STOP, user->nick,
+ channame, (ac >= 2 ? av[1] : "")); free(channame); } } |
