summaryrefslogtreecommitdiff
path: root/modules/chanserv/cs_xop.cpp
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-10-19 17:36:23 +0100
committerSadie Powell <sadie@witchery.services>2024-10-19 17:40:24 +0100
commit8cb2b801e948564223ee97bef25a6b53f3f1ad9b (patch)
tree5acacd0b2d05052251f1a1a6840cae6889d4cd97 /modules/chanserv/cs_xop.cpp
parent66b45534a8cbf088fa7b8ecf7a9096567ee50837 (diff)
Use the target nick as the default desc for mask access entries.
Diffstat (limited to 'modules/chanserv/cs_xop.cpp')
-rw-r--r--modules/chanserv/cs_xop.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/chanserv/cs_xop.cpp b/modules/chanserv/cs_xop.cpp
index 19fbf0c37..db8456492 100644
--- a/modules/chanserv/cs_xop.cpp
+++ b/modules/chanserv/cs_xop.cpp
@@ -179,7 +179,11 @@ private:
{
User *targ = User::Find(mask, true);
if (targ != NULL)
+ {
mask = "*!*@" + targ->GetDisplayedHost();
+ if (description.empty())
+ description = targ->nick;
+ }
else
{
source.Reply(NICK_X_NOT_REGISTERED, mask.c_str());