aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cmd.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/cmd.c b/src/cmd.c
index 154feaf..9fcdde5 100644
--- a/src/cmd.c
+++ b/src/cmd.c
@@ -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);