From 3aa379bb922e55b473c0b0cf37e05a288f15491b Mon Sep 17 00:00:00 2001 From: "geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b" Date: Sat, 9 Dec 2006 22:50:13 +0000 Subject: BUILD : 1.7.17 (1199) BUGS : 621 NOTES : Added the ability to see if AutoOp is enabled in NickServ INFO displays. git-svn-id: svn://svn.anope.org/anope/trunk@1199 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@918 5417fbe8-f217-4b02-8779-1006273d7864 --- src/core/ns_info.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/core/ns_info.c b/src/core/ns_info.c index 87179171b..a0985fedd 100644 --- a/src/core/ns_info.c +++ b/src/core/ns_info.c @@ -240,6 +240,12 @@ int do_info(User * u) getstring(u->na, NICK_INFO_OPT_MSG)); need_comma = 1; } + if (!(na->nc->flags & NI_AUTOOP)) { + end += snprintf(end, sizeof(buf) - (end - buf), "%s%s", + need_comma ? commastr : "", + getstring(u->na, NICK_INFO_OPT_AUTOOP)); + need_comma = 1; + } notice_lang(s_NickServ, u, NICK_INFO_OPTIONS, *buf ? buf : getstring(u->na, NICK_INFO_OPT_NONE)); -- cgit