mirror of
https://github.com/anope/anope.git
synced 2026-07-03 12:03:14 +02:00
Mark format strings with the GNU printf attribute.
This commit is contained in:
@@ -1070,7 +1070,7 @@ class BSKick : public Module
|
||||
}
|
||||
}
|
||||
|
||||
void bot_kick(ChannelInfo *ci, User *u, const char *message, ...)
|
||||
void bot_kick(ChannelInfo *ci, User *u, const char *message, ...) ATTR_FORMAT(4, 5)
|
||||
{
|
||||
va_list args;
|
||||
char buf[1024];
|
||||
|
||||
@@ -336,7 +336,7 @@ struct IRCDMessageMode : IRCDMessage
|
||||
{
|
||||
User *u = User::Find(params[0]);
|
||||
if (u)
|
||||
u->SetModesInternal(source, "%s", params[1].c_str());
|
||||
u->SetModesInternal(source, params[1]);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user