summaryrefslogtreecommitdiff
path: root/src/irc
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2003-10-03 19:33:59 +0000
committerSebastien Helleu <flashcode@flashtux.org>2003-10-03 19:33:59 +0000
commitcec899898aca342eec9f1d8af6515f6e9669de8d (patch)
treecb2a202174a51c4ca98985a760f921da3d658fed /src/irc
parent106bdb1d4ac51198ffed5f28c35818e842432e33 (diff)
downloadweechat-cec899898aca342eec9f1d8af6515f6e9669de8d.zip
Added parameters for alias and alias section in config file
Diffstat (limited to 'src/irc')
-rw-r--r--src/irc/irc-commands.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/irc/irc-commands.c b/src/irc/irc-commands.c
index fdab99b72..3391973a5 100644
--- a/src/irc/irc-commands.c
+++ b/src/irc/irc-commands.c
@@ -675,7 +675,7 @@ irc_cmd_send_msg (t_irc_server *server, char *arguments)
}
else
gui_printf (server->window,
- _("%s nick not found for \"privmsg\" command\n"),
+ _("%s nick not found for \"msg\" command\n"),
WEECHAT_ERROR);
server_sendf (server, "PRIVMSG %s :%s\r\n", ptr_channel->name, pos);
}
@@ -697,7 +697,7 @@ irc_cmd_send_msg (t_irc_server *server, char *arguments)
}
else
gui_printf (server->window,
- _("%s nick not found for \"privmsg\" command\n"),
+ _("%s nick not found for \"msg\" command\n"),
WEECHAT_ERROR);
}
server_sendf (server, "PRIVMSG %s :%s\r\n", arguments, pos);
@@ -739,9 +739,12 @@ irc_cmd_send_msg (t_irc_server *server, char *arguments)
}
}
else
+ {
gui_printf (server->window,
- _("%s wrong number of args for \"privmsg\" command\n"),
+ _("%s wrong argument count for \"msg\" command\n"),
WEECHAT_ERROR);
+ return -1;
+ }
return 0;
}