Prevent entering commands in <debug> if restricted
Because the <debug> ID always exists, it's possible to create a window for it even while restricted with "/window <debug>" and try to enter commands there.
このコミットが含まれているのは:
コミット
5c167e4181
@ -392,7 +392,7 @@ const char *commandIsAction(uint id, const char *input) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void command(uint id, char *input) {
|
void command(uint id, char *input) {
|
||||||
if (id == Debug && input[0] != '/') {
|
if (id == Debug && input[0] != '/' && !self.restricted) {
|
||||||
commandQuote(id, input);
|
commandQuote(id, input);
|
||||||
return;
|
return;
|
||||||
} else if (commandIsPrivmsg(id, input)) {
|
} else if (commandIsPrivmsg(id, input)) {
|
||||||
|
|||||||
読み込み中…
x
新しいイシューから参照
ユーザーをブロックする