1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-11-03 19:37:16 -05:00

Add forgotten file..

Belongs to 95ab7ee062
This commit is contained in:
Michael Vetter 2020-07-10 15:19:48 +02:00
parent 95ab7ee062
commit 29130e9293

View File

@ -5153,7 +5153,7 @@ cmd_beep(ProfWin* window, const char* const command, gchar** args)
gboolean
cmd_console(ProfWin* window, const char* const command, gchar** args)
{
gboolean isMuc = (g_strcmp0(args[0], "muc") == 0) ;
gboolean isMuc = (g_strcmp0(args[0], "muc") == 0);
if ((g_strcmp0(args[0], "chat") != 0) && !isMuc && (g_strcmp0(args[0], "private") != 0)) {
cons_bad_cmd_usage(command);
@ -5162,7 +5162,7 @@ cmd_console(ProfWin* window, const char* const command, gchar** args)
gchar* setting = args[1];
if ((g_strcmp0(setting, "all") != 0) && (g_strcmp0(setting, "first") != 0) && (g_strcmp0(setting, "none") != 0)) {
if ( !(isMuc && (g_strcmp0(setting, "mention") == 0))) {
if (!(isMuc && (g_strcmp0(setting, "mention") == 0))) {
cons_bad_cmd_usage(command);
return TRUE;
}