mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-06-29 12:16:37 +02:00
Rip out remainder of HOOKTYPE_GUEST. Whoops.. were not sending "nick in use" errors (bug caused a few hours ago)
This commit is contained in:
@@ -694,7 +694,6 @@ extern char *moddata_client_get(aClient *acptr, char *varname);
|
||||
#define HOOKTYPE_REHASH 7
|
||||
#define HOOKTYPE_PRE_LOCAL_CONNECT 8
|
||||
#define HOOKTYPE_PRE_LOCAL_QUIT 9
|
||||
#define HOOKTYPE_GUEST 10
|
||||
#define HOOKTYPE_SERVER_CONNECT 11
|
||||
#define HOOKTYPE_SERVER_QUIT 12
|
||||
#define HOOKTYPE_STATS 13
|
||||
|
||||
@@ -505,11 +505,6 @@ DLLFUNC CMD_FUNC(m_nick)
|
||||
{
|
||||
if (MyConnect(sptr))
|
||||
{
|
||||
if (IsUnknown(sptr))
|
||||
{
|
||||
RunHook4(HOOKTYPE_GUEST, cptr, sptr, parc, parv);
|
||||
return 0;
|
||||
}
|
||||
sendto_one(sptr, err_str(ERR_NICKNAMEINUSE), me.name,
|
||||
*sptr->name ? sptr->name : "*", nick);
|
||||
return 0; /* NICK message ignored */
|
||||
@@ -680,11 +675,6 @@ DLLFUNC CMD_FUNC(m_nick)
|
||||
** NICK is coming from local client connection. Just
|
||||
** send error reply and ignore the command.
|
||||
*/
|
||||
if (IsUnknown(sptr))
|
||||
{
|
||||
RunHook4(HOOKTYPE_GUEST, cptr, sptr, parc, parv);
|
||||
return 0;
|
||||
}
|
||||
sendto_one(sptr, err_str(ERR_NICKNAMEINUSE),
|
||||
me.name, *sptr->name ? sptr->name : "*", nick);
|
||||
return 0; /* NICK message ignored */
|
||||
|
||||
Reference in New Issue
Block a user