mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
Fix issues pointed out by e38774cc
This commit is contained in:
parent
8bbf9c696c
commit
f11b629b2f
@ -305,7 +305,7 @@ void command_runsub(const char *cmd, const char *data,
|
|||||||
|
|
||||||
if (*data == '\0') {
|
if (*data == '\0') {
|
||||||
/* no subcommand given - list the subcommands */
|
/* no subcommand given - list the subcommands */
|
||||||
signal_emit("list subcommands", 2, cmd);
|
signal_emit("list subcommands", 1, cmd);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -891,7 +891,7 @@ static void parse_command(const char *command, int expand_aliases,
|
|||||||
if (rec != NULL && !cmd_protocol_match(rec, server)) {
|
if (rec != NULL && !cmd_protocol_match(rec, server)) {
|
||||||
g_free(orig);
|
g_free(orig);
|
||||||
|
|
||||||
signal_emit("error command", 2,
|
signal_emit("error command", 1,
|
||||||
GINT_TO_POINTER(server == NULL ?
|
GINT_TO_POINTER(server == NULL ?
|
||||||
CMDERR_NOT_CONNECTED :
|
CMDERR_NOT_CONNECTED :
|
||||||
CMDERR_ILLEGAL_PROTO));
|
CMDERR_ILLEGAL_PROTO));
|
||||||
|
Loading…
Reference in New Issue
Block a user