diff options
author | Sadie Powell <sadie@witchery.services> | 2024-01-06 14:34:00 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2024-01-08 13:11:50 +0000 |
commit | a4dddfd5f121c9cc74e05e08a568c6a9febfd56f (patch) | |
tree | 5cb718582a9c9fc4d79a4a0833f3a4c8027cb821 /include/channels.h | |
parent | 7ddc865cdeb0be9eb929cbbefae1c92009683291 (diff) |
Mark format strings with the GNU printf attribute.
Diffstat (limited to 'include/channels.h')
-rw-r--r-- | include/channels.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/channels.h b/include/channels.h index 8be4e1335..3ff41005a 100644 --- a/include/channels.h +++ b/include/channels.h @@ -204,7 +204,7 @@ public: * @param enforce_mlock Should mlock be enforced on this mode change * @param cmodes The modes to set */ - void SetModes(BotInfo *bi, bool enforce_mlock, const char *cmodes, ...); + void SetModes(BotInfo *bi, bool enforce_mlock, const char *cmodes, ...) ATTR_FORMAT(4, 5); /** Set a string of modes internally on a channel * @param source The setter @@ -233,7 +233,7 @@ public: * @param reason The reason for the kick * @return true if the kick was successful, false if a module blocked the kick */ - bool Kick(BotInfo *bi, User *u, const char *reason = NULL, ...); + bool Kick(BotInfo *bi, User *u, const char *reason = NULL, ...) ATTR_FORMAT(4, 5); /** Get all modes set on this channel, excluding status modes. * @return a map of modes and their optional parameters. |