summaryrefslogtreecommitdiff
path: root/src/modules.c
diff options
context:
space:
mode:
authorrob rob@31f1291d-b8d6-0310-a050-a5561fc1590b <rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2005-09-13 16:59:11 +0000
committerrob rob@31f1291d-b8d6-0310-a050-a5561fc1590b <rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2005-09-13 16:59:11 +0000
commit56d21793fc0778c741a7fa38ee2d99c18a98f3b9 (patch)
treef5b460385a6769edfaa0d595523c08fcbe60afbe /src/modules.c
parent2a5d384b076af285a2072e258ab7e7bafd88d358 (diff)
Applied Trystans patch, fixed other issues he pointed out.
Note: make strict will still show a couple of warnings, i think we should leave it as is. git-svn-id: svn://svn.anope.org/anope/trunk@885 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@632 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/modules.c')
-rw-r--r--src/modules.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/modules.c b/src/modules.c
index 71cf97cba..ea4dbeea6 100644
--- a/src/modules.c
+++ b/src/modules.c
@@ -518,7 +518,7 @@ int loadModule(Module * m, User * u)
strncat(buf, "XXXXXX", 4095 - len);
buf[4095] = '\0';
/* Don't skip return value checking! -GD */
- if (ret = moduleCopyFile(m->name, buf) != MOD_ERR_OK)
+ if ((ret = moduleCopyFile(m->name, buf)) != MOD_ERR_OK)
return ret;
m->filename = sstrdup(buf);
@@ -2535,11 +2535,7 @@ void moduleNoticeLang(char *source, User * u, int number, ...)
**/
char *moduleGetLangString(User * u, int number)
{
- va_list va;
- char buffer[4096], outbuf[4096];
- char *fmt = NULL;
int lang = NSDefLanguage;
- char *s, *t, *buf;
if ((mod_current_module_name) && (!mod_current_module || strcmp(mod_current_module_name, mod_current_module->name)))
mod_current_module = findModule(mod_current_module_name);