From e9641139646040b27c412a8e68db06eebcebc324 Mon Sep 17 00:00:00 2001 From: codemastr Date: Sat, 13 Nov 2004 17:15:17 +0000 Subject: [PATCH] Updated Donation file, Added a 'B' flag to /who output for bots, and allowed normal users to /who +m B --- Changes | 3 +++ Donation | 4 ++-- help.conf | 1 + src/modules/m_who.c | 7 +++++-- 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/Changes b/Changes index aa388fa26..51d170fac 100644 --- a/Changes +++ b/Changes @@ -446,3 +446,6 @@ (#0002134) reported by Bugz. - Fixed small memory leak on /rehash (post-3.2.2). - Fixed botmotd crash due to last change (post-3.2.2). +- Updated the Donation file +- Added a 'B' flag to /who output for bots, and allowed normal users to /who +m B + (#0002096) suggested by White_Magic diff --git a/Donation b/Donation index a214bd67e..e6ba84a4b 100644 --- a/Donation +++ b/Donation @@ -5,11 +5,11 @@ you like Unreal, and you'd like to see it continue to exist, please consider mak a donation. We're not asking for anything huge, whatever you can afford is fine. PayPal Donation Link: - Or simply send a payment through PayPal to: -donation@unrealircd.com +donation@unrealircd.org If you don't want to use PayPal, or you want to donate something other than money (old computer hardware, etc.), contact Stskeeps (stskeeps@unrealircd.com) and send diff --git a/help.conf b/help.conf index b11c9291a..0ff990b4a 100644 --- a/help.conf +++ b/help.conf @@ -280,6 +280,7 @@ help Who { " G - User is /away (gone)"; " H - User is not /away (here)"; " r - User is using a registered nickname"; + " B - User is a bot (+B)"; " * - User is an IRC Operator"; " ~ - User is a Channel Owner (+q)"; " & - User is a Channel Admin (+a)"; diff --git a/src/modules/m_who.c b/src/modules/m_who.c index 8c7f4afdf..c351528bd 100644 --- a/src/modules/m_who.c +++ b/src/modules/m_who.c @@ -207,7 +207,7 @@ static void who_sendhelp(aClient *sptr) "Flag h : user has string in his/her hostname,", " wildcards accepted", "Flag m : user has set, only", - " O/o/C/A/a/N are allowed", + " O/o/C/A/a/N/B are allowed", "Flag n : user has string in his/her nickname,", " wildcards accepted", "Flag s : user is on server ,", @@ -353,7 +353,7 @@ int i = 1; } if (!IsAnOper(sptr)) - *umodes = *umodes & (UMODE_OPER | UMODE_LOCOP | UMODE_SADMIN | UMODE_ADMIN | UMODE_COADMIN | UMODE_NETADMIN); + *umodes = *umodes & (UMODE_OPER | UMODE_LOCOP | UMODE_SADMIN | UMODE_ADMIN | UMODE_COADMIN | UMODE_NETADMIN | UMODE_BOT); if (*umodes == 0) return -1; } @@ -606,6 +606,9 @@ int i = 0; if (IsARegNick(acptr)) status[i++] = 'r'; + if (acptr->umodes & UMODE_BOT) + status[i++] = 'B'; + if (IsAnOper(acptr) && (!IsHideOper(acptr) || sptr == acptr || IsAnOper(sptr))) status[i++] = '*';