mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-08 02:03:12 +02:00
Replace various 90% identical functions with some macro's instead.
This commit is contained in:
@@ -71,8 +71,10 @@ int nonickchange_check (aClient *sptr, aChannel *chptr)
|
||||
{
|
||||
if (!IsOper(sptr) && !IsULine(sptr)
|
||||
&& IsNoNickChange(chptr)
|
||||
&& !is_chanownprotop(sptr, chptr))
|
||||
&& !is_chan_op(sptr, chptr))
|
||||
{
|
||||
return HOOK_DENY;
|
||||
}
|
||||
|
||||
return HOOK_ALLOW;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user