[Pkg-privacy-commits] [irssi-plugin-otr] 137/267: Fix: OTR init command sending HTML tags not loved by irssi

Ximin Luo infinity0 at moszumanska.debian.org
Sat Aug 22 12:41:36 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 ee83f29ef45d1b1de9437866284ca6a2fb780621
Author: David Goulet <dgoulet at ev0ke.net>
Date:   Wed Nov 14 18:03:43 2012 -0500

    Fix: OTR init command sending HTML tags not loved by irssi
    
    Irssi does not handle well the HTML tag in the default OTR query message
    so just send the OTR tag instead. Contact me for a better fix!  :)
    
    Signed-off-by: David Goulet <dgoulet at ev0ke.net>
---
 src/cmd.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/cmd.c b/src/cmd.c
index 39d94d6..2404b4f 100644
--- a/src/cmd.c
+++ b/src/cmd.c
@@ -258,7 +258,6 @@ end:
 static void _cmd_init(struct otr_user_state *ustate, SERVER_REC *irssi,
 		const char *target, const void *data)
 {
-	char *msg;
 	ConnContext *ctx;
 
 	/* No server object, just ignore the request */
@@ -277,9 +276,11 @@ static void _cmd_init(struct otr_user_state *ustate, SERVER_REC *irssi,
 
 	IRSSI_NOTICE(irssi, target, "Initiating OTR session...");
 
-	msg = otrl_proto_default_query_msg(target, OTRL_POLICY_DEFAULT);
-	irssi_send_message(irssi, target, msg ? msg : "?OTRv23?");
-	free(msg);
+	/*
+	 * Irssi does not handle well the HTML tag in the default OTR query message
+	 * so just send the OTR tag instead. Contact me for a better fix! :)
+	 */
+	irssi_send_message(irssi, target, "?OTRv23?");
 
 end:
 	return;

-- 
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