From 111ba3750fd16c81100de6b759103e527c2c22f7 Mon Sep 17 00:00:00 2001 From: Adrien Saladin Date: Fri, 17 Jun 2016 15:07:15 +0200 Subject: Mask nickserv ghost password Closes #1750 --- src/common/outbound.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/common/outbound.c b/src/common/outbound.c index 539331a7..53ebe276 100644 --- a/src/common/outbound.c +++ b/src/common/outbound.c @@ -2805,9 +2805,14 @@ cmd_msg (struct session *sess, char *tbuf, char *word[], char *word_eol[]) else { /* mask out passwords */ - if (g_ascii_strcasecmp (nick, "nickserv") == 0 && - g_ascii_strncasecmp (msg, "identify ", 9) == 0) - msg = "identify ****"; + if (g_ascii_strcasecmp (nick, "nickserv") == 0) + { + if (g_ascii_strncasecmp (msg, "identify ", 9) == 0) + msg = "identify ****"; + else if (g_ascii_strncasecmp (msg, "ghost ", 6) == 0) + msg = "ghost ****"; + } + EMIT_SIGNAL (XP_TE_MSGSEND, sess, nick, msg, NULL, NULL, 0); } -- cgit 1.4.1