mirror of
https://github.com/profanity-im/profanity.git
synced 2024-11-03 19:37:16 -05:00
parent
95ab7ee062
commit
29130e9293
@ -5153,7 +5153,7 @@ cmd_beep(ProfWin* window, const char* const command, gchar** args)
|
|||||||
gboolean
|
gboolean
|
||||||
cmd_console(ProfWin* window, const char* const command, gchar** args)
|
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)) {
|
if ((g_strcmp0(args[0], "chat") != 0) && !isMuc && (g_strcmp0(args[0], "private") != 0)) {
|
||||||
cons_bad_cmd_usage(command);
|
cons_bad_cmd_usage(command);
|
||||||
@ -5162,7 +5162,7 @@ cmd_console(ProfWin* window, const char* const command, gchar** args)
|
|||||||
|
|
||||||
gchar* setting = args[1];
|
gchar* setting = args[1];
|
||||||
if ((g_strcmp0(setting, "all") != 0) && (g_strcmp0(setting, "first") != 0) && (g_strcmp0(setting, "none") != 0)) {
|
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);
|
cons_bad_cmd_usage(command);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user