1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-28 05:46:38 +02:00

irc: fix error message on /invite without arguments (bug #39272)

This commit is contained in:
Sebastien Helleu
2013-07-02 21:29:44 +02:00
parent 5e1c88a476
commit 7ab034b52b
2 changed files with 12 additions and 1 deletions
+10
View File
@@ -1885,6 +1885,16 @@ irc_command_invite (void *data, struct t_gui_buffer *buffer, int argc,
(void) data;
(void) argv_eol;
if (argc < 2)
{
weechat_printf (NULL,
_("%s%s: missing arguments for \"%s\" "
"command"),
weechat_prefix ("error"), IRC_PLUGIN_NAME,
"invite");
return WEECHAT_RC_OK;
}
if (argc > 2)
{
if (irc_channel_is_channel (ptr_server, argv[argc - 1]))