Skip to content

Commit d9f061b

Browse files
committed
Decrease nicksuffix command override priority so it goes after set::restrict-command =] (reported by Nini)
1 parent d513fb1 commit d9f061b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

files/nicksuffix.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ MOD_INIT() {
103103
}
104104

105105
MOD_LOAD() {
106-
CheckAPIError("CommandOverrideAdd(NICK)", CommandOverrideAdd(modinfo->handle, OVR_NICK, 0, nicksuffix_override));
106+
// Lower priority override so we can go *after* any potential set::restrict-command directives
107+
CheckAPIError("CommandOverrideAdd(NICK)", CommandOverrideAdd(modinfo->handle, OVR_NICK, 10, nicksuffix_override));
107108
return MOD_SUCCESS; // We good
108109
}
109110

0 commit comments

Comments
 (0)