mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-08-01 04:46:21 +00:00
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user