X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fcmd_quit.cpp;h=42077e7435a8997c22229c62241a24e7483acb05;hb=59b1a8955142935b02af6446005ab47fc7c3fc8c;hp=0b7357417b29d0cc9b98c4e0ae6d01c96c6755a7;hpb=293df6a8b55e89c127e60e92711ef0ef1027bff8;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/cmd_quit.cpp b/src/cmd_quit.cpp index 0b7357417..42077e743 100644 --- a/src/cmd_quit.cpp +++ b/src/cmd_quit.cpp @@ -2,10 +2,10 @@ * | Inspire Internet Relay Chat Daemon | * +------------------------------------+ * - * Inspire is copyright (C) 2002-2005 ChatSpike-Dev. + * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev. * E-mail: - * - * + * + * * * Written by Craig Edwards, Craig McLure, and others. * This program is free but copyrighted software; see @@ -60,7 +60,7 @@ extern chan_hash chanlist; extern whowas_hash whowas; extern std::vector all_opers; extern std::vector local_users; -extern userrec* fd_ref_table[65536]; +extern userrec* fd_ref_table[MAX_DESCRIPTORS]; void cmd_quit::Handle (char **parameters, int pcnt, userrec *user) { @@ -97,7 +97,7 @@ void cmd_quit::Handle (char **parameters, int pcnt, userrec *user) WriteOpers("*** Client exiting at %s: %s!%s@%s [%s]",user->server,user->nick,user->ident,user->host,parameters[0]); WriteCommonExcept(user,"QUIT :%s",parameters[0]); } - FOREACH_MOD OnUserQuit(user,std::string(Config->PrefixQuit)+std::string(parameters[0])); + FOREACH_MOD(I_OnUserQuit,OnUserQuit(user,std::string(Config->PrefixQuit)+std::string(parameters[0]))); } else @@ -105,13 +105,13 @@ void cmd_quit::Handle (char **parameters, int pcnt, userrec *user) Write(user->fd,"ERROR :Closing link (%s@%s) [QUIT]",user->ident,user->host); WriteOpers("*** Client exiting: %s!%s@%s [Client exited]",user->nick,user->ident,user->host); WriteCommonExcept(user,"QUIT :Client exited"); - FOREACH_MOD OnUserQuit(user,"Client exited"); + FOREACH_MOD(I_OnUserQuit,OnUserQuit(user,"Client exited")); } AddWhoWas(user); } - FOREACH_MOD OnUserDisconnect(user); + FOREACH_MOD(I_OnUserDisconnect,OnUserDisconnect(user)); /* push the socket on a stack of sockets due to be closed at the next opportunity */ if (user->fd > -1)