Fixed the 'r' command. - irc - Unnamed repository; edit this file 'description'… | |
git clone git://vernunftzentrum.de/irc.git | |
Log | |
Files | |
Refs | |
README | |
--- | |
commit 646d0a762d1536fca7c19518d1e30a269b57cba5 | |
parent f87508a1f9fd98d217a8dbe07281835160a58116 | |
Author: Quentin Carbonneaux <[email protected]> | |
Date: Sat, 10 Mar 2012 17:13:54 +0100 | |
Fixed the 'r' command. | |
This command kept sending the 'r' before the actual string we wanted to | |
send. | |
Diffstat: | |
irc.c | 3 ++- | |
1 file changed, 2 insertions(+), 1 deletion(-) | |
--- | |
diff --git a/irc.c b/irc.c | |
@@ -303,7 +303,8 @@ uparse(char *m) | |
sndf("PRIVMSG %s :%s", m, p); | |
return; | |
case 'r': /* Send raw. */ | |
- sndf("%s", m); | |
+ if (p[1]) | |
+ sndf("%s", &p[2]); | |
return; | |
case 'q': /* Quit. */ | |
quit=1; |