summaryrefslogtreecommitdiff
path: root/src/irc/irc-send.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2005-07-06 07:13:03 +0000
committerSebastien Helleu <flashcode@flashtux.org>2005-07-06 07:13:03 +0000
commit55125beee4aa5489f6976521f8ac899398fea836 (patch)
treece76bd09d9e2ccd489639d604410153f80b67777 /src/irc/irc-send.c
parenta724278215acf4fd1bfbb9f67beab109bf5b6aa0 (diff)
downloadweechat-55125beee4aa5489f6976521f8ac899398fea836.zip
Channels auto-prefixed by "#" (if no prefix found) for /join command
Diffstat (limited to 'src/irc/irc-send.c')
-rw-r--r--src/irc/irc-send.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/irc/irc-send.c b/src/irc/irc-send.c
index 22a90b2f3..266ea67d0 100644
--- a/src/irc/irc-send.c
+++ b/src/irc/irc-send.c
@@ -580,7 +580,10 @@ irc_cmd_send_ison (t_irc_server *server, char *arguments)
int
irc_cmd_send_join (t_irc_server *server, char *arguments)
{
- server_sendf (server, "JOIN %s\r\n", arguments);
+ if (string_is_channel (arguments))
+ server_sendf (server, "JOIN %s\r\n", arguments);
+ else
+ server_sendf (server, "JOIN #%s\r\n", arguments);
return 0;
}