[Pkg-privacy-commits] [irssi-plugin-otr] 47/267: Send status messages to the xchat server tab.
Ximin Luo
infinity0 at moszumanska.debian.org
Sat Aug 22 12:41:27 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 3c55d34cf2a7c1241a658987a13b5ac16df2498d
Author: Uli Meis <a.sporto+bee at gmail.com>
Date: Mon Feb 2 20:16:27 2009 +0100
Send status messages to the xchat server tab.
---
xchat_otr.c | 18 +++++++++++++-----
1 file changed, 13 insertions(+), 5 deletions(-)
diff --git a/xchat_otr.c b/xchat_otr.c
index 5c5b8ad..6bfea04 100644
--- a/xchat_otr.c
+++ b/xchat_otr.c
@@ -249,12 +249,20 @@ void printformat(IRC_CTX *ircctx, const char *nick, int lvl, int fnum, ...)
if (ircctx)
server = ircctx->address;
- find_query_ctx = xchat_find_context(ph, server, nick);
-
- if(find_query_ctx==NULL)
- { // no query window yet, lets open one
- xchat_commandf(ph, "query %s", nick);
+ if (server&&nick) {
find_query_ctx = xchat_find_context(ph, server, nick);
+ if(find_query_ctx==NULL) {
+ // no query window yet, let's open one
+ xchat_commandf(ph, "query %s", nick);
+ find_query_ctx = xchat_find_context(ph, server, nick);
+ }
+ } else {
+ find_query_ctx = xchat_find_context(ph,
+ NULL,
+ xchat_get_info(ph,
+ "network") ?
+ :
+ xchat_get_info(ph,"server"));
}
xchat_set_context(ph, find_query_ctx);
--
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