summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcheapie <no-email-for-you@example.com>2015-08-26 01:05:59 -0400
committercheapie <no-email-for-you@example.com>2015-08-26 01:05:59 -0400
commit63f28d8cb0bdb176e23d9296255cf86c4f3430c2 (patch)
tree4826e48910655065d63c89a991bca9b486f6000d
parent181a5044a35f80436008f27c7827a1c3fd801459 (diff)
downloadsparkles-63f28d8cb0bdb176e23d9296255cf86c4f3430c2.tar
sparkles-63f28d8cb0bdb176e23d9296255cf86c4f3430c2.tar.gz
sparkles-63f28d8cb0bdb176e23d9296255cf86c4f3430c2.tar.bz2
sparkles-63f28d8cb0bdb176e23d9296255cf86c4f3430c2.tar.xz
sparkles-63f28d8cb0bdb176e23d9296255cf86c4f3430c2.zip
pipe /me fix
I was using the wrong index when using /me with pipes so it was including the "me" in the text incorrectly
-rw-r--r--hexsparkles.c2
-rw-r--r--sparkles.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/hexsparkles.c b/hexsparkles.c
index 5e0d2e1..a6d1b0a 100644
--- a/hexsparkles.c
+++ b/hexsparkles.c
@@ -2027,7 +2027,7 @@ static int TrapActionPost_cb(char *word[], char *word_eol[], void *userdata) {
*A = 0;
CmdStackPtr=A+2;
char *OldPtr = CmdStackPtr;
- hexchat_commandf(ph, "%s %s", Buffer, word_eol[1]);
+ hexchat_commandf(ph, "%s %s", Buffer, word_eol[2]);
if(OldPtr == CmdStackPtr) {
hexchat_printf(ph, "\"%s\" in cmdstack did not result in /say", Buffer);
CmdStackPtr = NULL;
diff --git a/sparkles.c b/sparkles.c
index 16ecb67..d084b75 100644
--- a/sparkles.c
+++ b/sparkles.c
@@ -2027,7 +2027,7 @@ static int TrapActionPost_cb(char *word[], char *word_eol[], void *userdata) {
*A = 0;
CmdStackPtr=A+2;
char *OldPtr = CmdStackPtr;
- xchat_commandf(ph, "%s %s", Buffer, word_eol[1]);
+ xchat_commandf(ph, "%s %s", Buffer, word_eol[2]);
if(OldPtr == CmdStackPtr) {
xchat_printf(ph, "\"%s\" in cmdstack did not result in /say", Buffer);
CmdStackPtr = NULL;