mirror of
https://github.com/irssi/irssi.git
synced 2024-11-03 04:27:19 -05:00
perl_command() - just a small sanity check that we're not sending empty
command. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2106 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
879702897b
commit
32f26d0ff5
@ -453,6 +453,9 @@ void perl_command(const char *cmd, SERVER_REC *server, WI_ITEM_REC *item)
|
||||
const char *cmdchars;
|
||||
char *sendcmd = (char *) cmd;
|
||||
|
||||
if (*cmd == '\0')
|
||||
return;
|
||||
|
||||
cmdchars = settings_get_str("cmdchars");
|
||||
if (strchr(cmdchars, *cmd) == NULL) {
|
||||
/* no command char - let's put it there.. */
|
||||
|
Loading…
Reference in New Issue
Block a user