diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2005-01-08 17:37:23 +0000 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2005-01-08 17:37:23 +0000 |
commit | 64601fc662d359ae1b10b9205020d09700500180 (patch) | |
tree | 1fb30bc55f1b1db94bf731c11b91ba3fd1201634 /src | |
parent | d8360af103ea29d84ca893812f3cf78c7dac18bd (diff) | |
download | weechat-64601fc662d359ae1b10b9205020d09700500180.zip |
Fixed /me command (now ok without parameter)
Diffstat (limited to 'src')
-rw-r--r-- | src/irc/irc-commands.c | 2 | ||||
-rw-r--r-- | src/irc/irc-send.c | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/irc/irc-commands.c b/src/irc/irc-commands.c index b18426099..87b0da101 100644 --- a/src/irc/irc-commands.c +++ b/src/irc/irc-commands.c @@ -101,7 +101,7 @@ t_irc_command irc_commands[] = { "me", N_("send a ctcp action to the current channel"), N_("message"), N_("message: message to send"), - 1, MAX_ARGS, 1, NULL, irc_cmd_send_me, NULL }, + 0, MAX_ARGS, 1, NULL, irc_cmd_send_me, NULL }, { "mode", N_("change channel or user mode"), N_("{ channel {[+|-]|o|p|s|i|t|n|b|v} [limit] [user] [ban mask] } | " "{ nickname {[+|-]|i|w|s|o}"), diff --git a/src/irc/irc-send.c b/src/irc/irc-send.c index 46b1bddba..801b0fa8a 100644 --- a/src/irc/irc-send.c +++ b/src/irc/irc-send.c @@ -468,12 +468,14 @@ int irc_send_me (t_irc_server *server, t_irc_channel *channel, char *arguments) { server_sendf (server, "PRIVMSG %s :\01ACTION %s\01\r\n", - channel->name, arguments); + channel->name, + (arguments && arguments[0]) ? arguments : ""); irc_display_prefix (channel->buffer, PREFIX_ACTION_ME); gui_printf_color (channel->buffer, COLOR_WIN_CHAT_NICK, "%s", server->nick); gui_printf_color (channel->buffer, - COLOR_WIN_CHAT, " %s\n", arguments); + COLOR_WIN_CHAT, " %s\n", + (arguments && arguments[0]) ? arguments : ""); return 0; } |