mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-19 14:46:20 +00:00
xep-0308: Make /correct work without quotation marks
Now we can specify an unlimited amount of arguments for commands. Maybe this is also helpful for other commands that use quotation marks so far.
This commit is contained in:
@@ -8701,7 +8701,10 @@ cmd_correct(ProfWin *window, const char *const command, gchar **args)
|
||||
}
|
||||
|
||||
// send message again, with replace flag
|
||||
cl_ev_send_msg_correct(chatwin, args[0], FALSE, TRUE);
|
||||
gchar *message = g_strjoinv(" ", args);
|
||||
cl_ev_send_msg_correct(chatwin, message, FALSE, TRUE);
|
||||
|
||||
free(message);
|
||||
return TRUE;
|
||||
} else if (window->type == WIN_MUC) {
|
||||
ProfMucWin *mucwin = (ProfMucWin*)window;
|
||||
@@ -8713,7 +8716,10 @@ cmd_correct(ProfWin *window, const char *const command, gchar **args)
|
||||
}
|
||||
|
||||
// send message again, with replace flag
|
||||
cl_ev_send_muc_msg_corrected(mucwin, args[0], FALSE, TRUE);
|
||||
gchar *message = g_strjoinv(" ", args);
|
||||
cl_ev_send_muc_msg_corrected(mucwin, message, FALSE, TRUE);
|
||||
|
||||
free(message);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user