Fixed the 'r' command. - irc - Unnamed repository; edit this file 'description' to name the repository.
(HTM) git clone git://vernunftzentrum.de/irc.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
---
(DIR) commit 646d0a762d1536fca7c19518d1e30a269b57cba5
(DIR) parent f87508a1f9fd98d217a8dbe07281835160a58116
(HTM) Author: Quentin Carbonneaux <qcarbonneaux@gmail.com>
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(-)
---
(DIR) 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;