mirror of
https://github.com/EnergyMech/energymech.git
synced 2025-12-29 16:14:43 +00:00
removed old IDWRAP code & new code for handling nicks & userhost
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user