summaryrefslogtreecommitdiff
path: root/src/modules.c
diff options
context:
space:
mode:
authorgeniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b <geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2005-05-03 15:20:53 +0000
committergeniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b <geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2005-05-03 15:20:53 +0000
commite8974f0d3e50a35c36ed63a1b454d2dc9fba51fc (patch)
tree6f0e8f523b74a79715cbe278916ba73fa34f8608 /src/modules.c
parent22bf8b43b8d5ad4addff2ea9398e5da870699292 (diff)
BUILD : 1.7.8 (759) BUGS : NOTES : Various updates to the modulepack, and fixed an issue with mod_current_module set incorrectly in some cases, making the lang functions fail
git-svn-id: svn://svn.anope.org/anope/trunk@759 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@521 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/modules.c')
-rw-r--r--src/modules.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules.c b/src/modules.c
index a508cda7e..458459f31 100644
--- a/src/modules.c
+++ b/src/modules.c
@@ -2378,7 +2378,7 @@ void moduleInsertLanguage(int langNumber, int ac, char **av)
{
int i;
- if ((mod_current_module_name) && (!mod_current_module)) {
+ 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);
}
@@ -2412,7 +2412,7 @@ void moduleNoticeLang(char *source, User * u, int number, ...)
int lang = LANG_EN_US;
char *s, *t, *buf;
- if ((mod_current_module_name) && (!mod_current_module)) {
+ 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);
}
/* Find the users lang, and use it if we cant */
@@ -2456,7 +2456,7 @@ void moduleNoticeLang(char *source, User * u, int number, ...)
void moduleDeleteLanguage(int langNumber)
{
int idx = 0;
- if ((mod_current_module_name) && (!mod_current_module)) {
+ 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);
}
for (idx = 0; idx > mod_current_module->lang[langNumber].argc; idx++) {