diff options
| author | Sadie Powell <sadie@witchery.services> | 2024-10-19 17:36:23 +0100 |
|---|---|---|
| committer | Sadie Powell <sadie@witchery.services> | 2024-10-19 17:40:24 +0100 |
| commit | 8cb2b801e948564223ee97bef25a6b53f3f1ad9b (patch) | |
| tree | 5acacd0b2d05052251f1a1a6840cae6889d4cd97 /modules/chanserv/cs_xop.cpp | |
| parent | 66b45534a8cbf088fa7b8ecf7a9096567ee50837 (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.cpp | 4 |
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()); |
