mirror of
https://github.com/irssi/irssi.git
synced 2026-08-09 20:00:23 +02: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:
parent
15d49dbd85
commit
fbb5cd6990
1 changed files with 6 additions and 6 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue