summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-02-26 14:41:50 +0000
committerSadie Powell <sadie@witchery.services>2024-02-26 14:41:50 +0000
commit83dd96b9f2ea3a10c9c55ecec42d4f7e330643fe (patch)
tree1823102f16cd149081013004bb734af90adaaced /include
parentcabaa079dfb1e5a65b770914676dd4b2f0f16b10 (diff)
Extract should privmsg logic to its own function.
Diffstat (limited to 'include')
-rw-r--r--include/users.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/users.h b/include/users.h
index b33cf2916..d8860e6f2 100644
--- a/include/users.h
+++ b/include/users.h
@@ -369,6 +369,9 @@ public:
*/
bool BadPassword();
+ /** Determines whether this user should receive a PRIVMSG instead of a NOTICE. */
+ bool ShouldPrivmsg() const;
+
/** Finds a user by nick, or possibly UID
* @param name The nick, or possibly UID, to lookup
* @param nick_only set to true to only look up by nick, not UID