mirror of
https://github.com/profanity-im/profanity.git
synced 2025-02-02 15:08:15 -05:00
xep-0308: only allow /correct when corrections are enabled
This commit is contained in:
parent
c995f3150e
commit
edba5c83ff
@ -8691,6 +8691,11 @@ cmd_correct(ProfWin *window, const char *const command, gchar **args)
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!prefs_get_boolean(PREF_CORRECTION_ALLOW)) {
|
||||||
|
win_println(window, THEME_DEFAULT, '!', "Corrections not enabled. See /help correction.");
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
if (window->type == WIN_CHAT) {
|
if (window->type == WIN_CHAT) {
|
||||||
ProfChatWin *chatwin = (ProfChatWin*)window;
|
ProfChatWin *chatwin = (ProfChatWin*)window;
|
||||||
assert(chatwin->memcheck == PROFCHATWIN_MEMCHECK);
|
assert(chatwin->memcheck == PROFCHATWIN_MEMCHECK);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user