1
0
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:
Bram Matthys
2015-07-12 20:02:00 +02:00
parent 020bf7db2f
commit afb4c7bebe
2 changed files with 0 additions and 11 deletions
-1
View File
@@ -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
-10
View File
@@ -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 */