1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

same cmdchar twice ignores aliases ignores aliases - not any two cmdchars

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@316 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-06-10 22:48:18 +00:00 committed by cras
parent 15d49dbd85
commit fbb5cd6990

View File

@ -421,8 +421,8 @@ void cmd_get_remove_func(CMD_GET_FUNC func)
static void parse_outgoing(const char *line, SERVER_REC *server, void *item)
{
const char *cmdchars, *alias;
char *cmd, *str, *args, *oldcmd;
const char *alias;
char *cmd, *str, *args, *oldcmd, *cmdchar;
int use_alias = TRUE;
g_return_if_fail(line != NULL);
@ -433,8 +433,8 @@ static void parse_outgoing(const char *line, SERVER_REC *server, void *item)
return;
}
cmdchars = settings_get_str("cmdchars");
if (strchr(cmdchars, *line) == NULL)
cmdchar = strchr(settings_get_str("cmdchars"), *line);
if (cmdchar == NULL)
return; /* handle only /commands here */
line++;
if (*line == ' ') {
@ -442,8 +442,8 @@ static void parse_outgoing(const char *line, SERVER_REC *server, void *item)
return;
}
/* //command ignores aliases */
if (strchr(cmdchars, *line) != NULL) {
/* same cmdchar twice ignores aliases ignores aliases */
if (*line == *cmdchar) {
line++;
use_alias = FALSE;
}