1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-06 19:03:13 +02:00

- Fix for HOOKTYPE_REMOTE_QUIT (was called for local quits too)

This commit is contained in:
Bram Matthys
2003-09-20 14:47:47 +00:00
parent af2834d5e9
commit 729689a4cd
2 changed files with 5 additions and 1 deletions
+1
View File
@@ -2430,3 +2430,4 @@ seen. gmtime warning still there
- Added HOOKTYPE_REMOTE_QUIT
- Added beta18 release notes (might be changed)
- Added HOOKTYPE_REHASHFLAG (triggered when /rehash is passed a flag)
- Fix for HOOKTYPE_REMOTE_QUIT (was called for local quits too)
+4 -1
View File
@@ -655,7 +655,10 @@ static void exit_one_client(aClient *cptr, aClient *sptr, aClient *from, char *c
sptr->user->server, sptr->name,
sptr->user->username,
sptr->user->realhost, comment);
RunHook2(HOOKTYPE_REMOTE_QUIT, sptr, comment);
if (!MyClient(sptr))
{
RunHook2(HOOKTYPE_REMOTE_QUIT, sptr, comment);
}
while ((mp = sptr->user->channel))
remove_user_from_channel(sptr, mp->chptr);