mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-10 14:43:13 +02:00
In 4.2.0 we added support for priorities in CmdoverrideAddEx(),
however it turns out they were accidentally reversed. This is now corrected: highest number = highest prioty. Reported by Gottem in https://bugs.unrealircd.org/view.php?id=5162
This commit is contained in:
+2
-2
@@ -1529,8 +1529,8 @@ void CmdoverrideDel(Cmdoverride *cmd)
|
||||
|
||||
int CallCmdoverride(Cmdoverride *ovr, aClient *cptr, aClient *sptr, int parc, char *parv[])
|
||||
{
|
||||
if (ovr->prev)
|
||||
return ovr->prev->func(ovr->prev, cptr, sptr, parc, parv);
|
||||
if (ovr->next)
|
||||
return ovr->next->func(ovr->next, cptr, sptr, parc, parv);
|
||||
return ovr->command->func(cptr, sptr, parc, parv);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user