mirror of
https://github.com/anope/anope.git
synced 2026-07-04 02:43:12 +02:00
Make stristr() const-safe, replace post-increment on iterators with pre-increment, remove now unused variables, made my_memo_lang() in hs_request.c const-safe.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2320 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
@@ -772,7 +772,7 @@ class HSRequest : public Module
|
||||
}
|
||||
};
|
||||
|
||||
void my_memo_lang(User *u, char *name, int z, int number, ...)
|
||||
void my_memo_lang(User *u, const char *name, int z, int number, ...)
|
||||
{
|
||||
va_list va;
|
||||
char buffer[4096], outbuf[4096];
|
||||
@@ -832,10 +832,10 @@ void req_send_memos(User *u, char *vIdent, char *vHost)
|
||||
|
||||
if (HSRequestMemoOper == 1)
|
||||
{
|
||||
for (it = svsopers_in_config.begin(); it != svsopers_in_config.end(); it++)
|
||||
for (it = svsopers_in_config.begin(); it != svsopers_in_config.end(); ++it)
|
||||
{
|
||||
const std::string nick = it->first;
|
||||
my_memo_lang(u, const_cast<char *>(nick.c_str()), z, LNG_REQUEST_MEMO, host);
|
||||
std::string nick = it->first;
|
||||
my_memo_lang(u, nick.c_str(), z, LNG_REQUEST_MEMO, host);
|
||||
}
|
||||
}
|
||||
if (HSRequestMemoSetters == 1)
|
||||
|
||||
Reference in New Issue
Block a user