mirror of
https://github.com/profanity-im/profanity.git
synced 2024-11-03 19:37:16 -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;
|
||||
}
|
||||
|
||||
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) {
|
||||
ProfChatWin *chatwin = (ProfChatWin*)window;
|
||||
assert(chatwin->memcheck == PROFCHATWIN_MEMCHECK);
|
||||
|
Loading…
Reference in New Issue
Block a user