removed old IDWRAP code & new code for handling nicks & userhost

This commit is contained in:
joonicks
2025-10-27 15:13:49 +01:00
parent 9ca80bc45c
commit c9d2907a9e
23 changed files with 184 additions and 294 deletions

View File

@@ -427,7 +427,7 @@ void channel_massmode(const Chan *chan, char *pattern, int filtmode, char mode,
/*
* never deop yourself, stupid bot
*/
if (nickcmp(pat,current->nick))
if (nickcmp(pat,getbotnick(current)))
willdo = TRUE;
}
else
@@ -890,9 +890,10 @@ void do_mode(COMMAND_ARGS)
}
else
{
/* todo: is it really necessary to chop? */
target = chop(&rest);
if (!nickcmp(current->nick,target))
if (!nickcmp(target,getbotnick(current)))
{
to_server("MODE %s %s\n",target,rest);
}