1
0
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:
Timo Sirainen 2001-11-19 22:47:32 +00:00 committed by cras
parent 879702897b
commit 32f26d0ff5

View File

@ -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.. */