summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuentin Carbonneaux2012-03-10 17:13:54 +0100
committerQuentin Carbonneaux2012-03-10 17:13:54 +0100
commit646d0a762d1536fca7c19518d1e30a269b57cba5 (patch)
treeaa5418e3aab36185b606d9b7ecc495711a00e587
parentf87508a1f9fd98d217a8dbe07281835160a58116 (diff)
Fixed the 'r' command.
This command kept sending the 'r' before the actual string we wanted to send.
-rw-r--r--irc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/irc.c b/irc.c
index 8caef1e..85d695b 100644
--- 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;