diff options
| -rw-r--r-- | src/cmd.c | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -441,9 +441,17 @@ void cmd_execute(void) { else target = 0; - if(command[0] == '/' && command[1] && command[1] != '/') - cmd_slash(); - else if(target) + if(command[0] == '/') { + if(command[1] == '/') { + /* allow typing "//foo" to send "/foo" as channel/PM text */ + command++; + } else { + cmd_slash(); + return; + } + } + + if(target) cmd_chan_text(); else if(scr_current == SCR_PRIV || scr_current == SCR_SERVER) cmd_send_pm(command); |
