diff options
author | DukePyrolator <DukePyrolator@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-08-12 03:56:44 +0000 |
---|---|---|
committer | DukePyrolator <DukePyrolator@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-08-12 03:56:44 +0000 |
commit | 577870bb45b537889f6e6a102e0dbc52ee4fa841 (patch) | |
tree | 3e22846b78c09c03e5f1f2725a6b8807c5b5954d /src | |
parent | 6b8728428b55baa87596be7258497d2e8c15dd14 (diff) |
fixed a crashbug on /hostserv activate
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2449 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/hs_request.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/hs_request.c b/src/modules/hs_request.c index e249561ef..c2b9d77bf 100644 --- a/src/modules/hs_request.c +++ b/src/modules/hs_request.c @@ -342,7 +342,7 @@ class HSListBase : public Command char buf[BUFSIZE]; int counter = 1; int from = 0, to = 0; - int display_counter = 0; + unsigned display_counter = 0; HostCore *current; current = hs_request_head; @@ -772,7 +772,7 @@ class HSRequest : public Module } }; -void my_memo_lang(User *u, const char *name, int z, int number, ...) +void my_memo_lang(User *u, char *name, int z, int number, ...) { va_list va; char buffer[4096], outbuf[4096]; @@ -835,7 +835,7 @@ void req_send_memos(User *u, char *vIdent, char *vHost) for (it = svsopers_in_config.begin(); it != svsopers_in_config.end(); ++it) { std::string nick = it->first; - my_memo_lang(u, nick.c_str(), z, LNG_REQUEST_MEMO, host); + my_memo_lang(u, const_cast<char *>(nick.c_str()), z, LNG_REQUEST_MEMO, host); } } if (HSRequestMemoSetters == 1) |