From 63f28d8cb0bdb176e23d9296255cf86c4f3430c2 Mon Sep 17 00:00:00 2001 From: cheapie Date: Wed, 26 Aug 2015 01:05:59 -0400 Subject: pipe /me fix I was using the wrong index when using /me with pipes so it was including the "me" in the text incorrectly --- hexsparkles.c | 2 +- sparkles.c | 2 +- 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; -- cgit v1.2.3