Troels Henriksen <[email protected]> wrote:
> ii performs some strange processing around JOIN messages, which means
> that they are not handled correctly (they are put in the server buffer
> with 'null' channel name). The following patch fixes that, but I can't
> believe the code was in there for no reason, as it seems rather
> deliberate. Could someone shed some light on this?
>
Just talked to you on #suckless, but for the reast of the ML, here's the
patch that nion gave me. Not sure why it hasn't been pushed.
-emg
diff -r ff0f9af69619 -r fa797b7349f7 ii.c
--- a/ii.c Tue Nov 01 15:44:18 2011 -0700
+++ b/ii.c Mon Nov 28 01:34:26 2011 -0800
@@ -368,6 +368,9 @@
if((p = strchr(cmd, ':'))) {
*p = 0;
argv[TOK_TEXT] = ++p;
+ } else if((p = strchr(cmd, ' '))) {
+ *p = 0;
+ argv[TOK_TEXT] = ++p;
}
tokenize(&argv[TOK_CMD], TOK_LAST - TOK_CMD, cmd, ' ');