mirror of
https://github.com/profanity-im/profanity.git
synced 2024-11-03 19:37:16 -05:00
commit
7de261b1c2
@ -3050,14 +3050,15 @@ cmd_blocked(ProfWin* window, const char* const command, gchar** args)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (strncmp(args[0], "report-", 7) == 0) {
|
if (strncmp(args[0], "report-", 7) == 0) {
|
||||||
char *jid;
|
char* jid = NULL;
|
||||||
char *msg = NULL;
|
char* msg = NULL;
|
||||||
guint argn = g_strv_length(args);
|
guint argn = g_strv_length(args);
|
||||||
|
|
||||||
if (argn >= 2) {
|
if (argn >= 2) {
|
||||||
jid = args[1];
|
jid = args[1];
|
||||||
} else {
|
} else {
|
||||||
cons_bad_cmd_usage(command);
|
cons_bad_cmd_usage(command);
|
||||||
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (argn >= 3) {
|
if (argn >= 3) {
|
||||||
|
Loading…
Reference in New Issue
Block a user