summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNico Golde <nion@suckless.org>2012-07-03 17:43:56 +0200
committerNico Golde <nion@suckless.org>2012-07-03 17:43:56 +0200
commitaed65ee703fcc9b0e0a4c2ff61ee8789fb88009c (patch)
tree8afe73a53abdb726dcc2f21d6f1cc19d3d0501ef
parenta5a7d1b3766546d7466f174f9c1c0be2f9f505f2 (diff)
downloadii-aed65ee703fcc9b0e0a4c2ff61ee8789fb88009c.zip
ii-aed65ee703fcc9b0e0a4c2ff61ee8789fb88009c.tar.gz
ii-aed65ee703fcc9b0e0a4c2ff61ee8789fb88009c.tar.bz2
convert slashes to , rather than _ in channel names. , is not allowed by the RFC, _ is.
-rw-r--r--CHANGES3
-rw-r--r--ii.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/CHANGES b/CHANGES
index ab0943f..9bcc176 100644
--- a/CHANGES
+++ b/CHANGES
@@ -4,6 +4,9 @@
expose the password in the process list.
- Fix parsing of JOIN messages for certain servers.
Thanks Ivan Kanakarakis!
+ - Use , rather than _ for slash characters in channel names.
+ As per RFC , is not allowed in a channel name, while _ is.
+ Thanks plomplomplom and Nils Dagsson Moskopp!
1.6 (2011-01-31):
- fix regression introduced for handling unknown commands
diff --git a/ii.c b/ii.c
index 6eeeb04..531c2ee 100644
--- a/ii.c
+++ b/ii.c
@@ -52,7 +52,7 @@ static void usage() {
static char *striplower(char *s) {
char *p = NULL;
for(p = s; p && *p; p++) {
- if(*p == '/') *p = '_';
+ if(*p == '/') *p = ',';
*p = tolower(*p);
}
return s;