Introduction
Introduction Statistics Contact Development Disclaimer Help
fix parsing of JOIN messages for certain servers, thanks van Kanakarakis - ii -…
git clone git://git.suckless.org/ii
Log
Files
Refs
README
LICENSE
---
commit a5a7d1b3766546d7466f174f9c1c0be2f9f505f2
parent 9a0ea4ada1533bdd7292557cf7087a58bf478810
Author: Nico Golde <[email protected]>
Date: Thu, 28 Jun 2012 15:41:57 +0200
fix parsing of JOIN messages for certain servers, thanks van Kanakarakis
Diffstat:
M CHANGES | 2 ++
M ii.c | 10 +++-------
2 files changed, 5 insertions(+), 7 deletions(-)
---
diff --git a/CHANGES b/CHANGES
@@ -2,6 +2,8 @@
- -k now specifies an environment variable that contains the
server key. This behaviour has been changed in order to not
expose the password in the process list.
+ - Fix parsing of JOIN messages for certain servers.
+ Thanks Ivan Kanakarakis!
1.6 (2011-01-31):
- fix regression introduced for handling unknown commands
diff --git a/ii.c b/ii.c
@@ -347,13 +347,9 @@ static void proc_server_cmd(char *buf) {
} else if(!strncmp("ERROR", argv[TOK_CMD], 6))
snprintf(message, PIPE_BUF, "-!- error %s", argv[TOK_TEXT] ? a…
else if(!strncmp("JOIN", argv[TOK_CMD], 5)) {
- if(argv[TOK_TEXT] != NULL){
- p = strchr(argv[TOK_TEXT], ' ');
- if(p)
- *p = 0;
- }
- argv[TOK_CHAN] = argv[TOK_TEXT];
- snprintf(message, PIPE_BUF, "-!- %s(%s) has joined %s", argv[T…
+ if (argv[TOK_TEXT] != NULL)
+ argv[TOK_CHAN] = argv[TOK_TEXT];
+ snprintf(message, PIPE_BUF, "-!- %s(%s) has joined %s", argv[T…
} else if(!strncmp("PART", argv[TOK_CMD], 5)) {
snprintf(message, PIPE_BUF, "-!- %s(%s) has left %s", argv[TOK…
} else if(!strncmp("MODE", argv[TOK_CMD], 5))
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.