[Pkg-privacy-commits] [irssi-plugin-otr] 88/267: Fix: remove unused variable lastmsg

Ximin Luo infinity0 at moszumanska.debian.org
Sat Aug 22 12:26:21 UTC 2015


This is an automated email from the git hooks/post-receive script.

infinity0 pushed a commit to branch debian
in repository irssi-plugin-otr.

commit 896d1317932cae6684ff00ab7a1ba16becac3b33
Author: David Goulet <dgoulet at ev0ke.net>
Date:   Fri Nov 2 16:38:58 2012 -0400

    Fix: remove unused variable lastmsg
    
    Signed-off-by: David Goulet <dgoulet at ev0ke.net>
---
 src/otr_util.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/src/otr_util.c b/src/otr_util.c
index 987ab6d..8115d65 100644
--- a/src/otr_util.c
+++ b/src/otr_util.c
@@ -746,7 +746,6 @@ char *otr_receive(IRC_CTX *ircctx, const char *msg, const char *from)
 	int ignore_message;
 	char *newmessage = NULL;
 	char accname[256];
-	char *lastmsg;
 	ConnContext *co;
 	struct co_info *coi;
 	OtrlTLV *tlvs;
@@ -770,13 +769,6 @@ char *otr_receive(IRC_CTX *ircctx, const char *msg, const char *from)
 		return NULL;
 	}
 
-	/* The server might have split lines that were too long
-	 * (bitlbee does that). The heuristic is simple: If we can find ?OTR:
-	 * in the message but it doesn't end with a ".", queue it and wait
-	 * for the rest.
-	 */
-	lastmsg = co->app_data;
-
 	if (coi->msgqueue) { /* already something in the queue */
 		strcpy(coi->msgqueue + strlen(coi->msgqueue), msg);
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/irssi-plugin-otr.git



More information about the Pkg-privacy-commits mailing list