summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorcertus certus@31f1291d-b8d6-0310-a050-a5561fc1590b <certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2006-07-02 16:37:28 +0000
committercertus certus@31f1291d-b8d6-0310-a050-a5561fc1590b <certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2006-07-02 16:37:28 +0000
commit7ceb358ec4c7ceb8d202ca18c1572804400b4a31 (patch)
tree0093ae1c6fe939dd39a2c04fe0edfa7a5781d42b /src
parent4e828d3260181809d9392b6b7dd47ed3b1d35d38 (diff)
# BUILD : 1.7.14 (1079)
# BUGS : 529 531 # NOTES : applied trystan's fix and fixed some readonly stuff git-svn-id: svn://svn.anope.org/anope/trunk@1079 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@803 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
-rw-r--r--src/core/ms_del.c3
-rw-r--r--src/modules.c25
2 files changed, 20 insertions, 8 deletions
diff --git a/src/core/ms_del.c b/src/core/ms_del.c
index 1fc3557c0..36ced1eff 100644
--- a/src/core/ms_del.c
+++ b/src/core/ms_del.c
@@ -78,6 +78,9 @@ int do_del(User * u)
if (!(ci = cs_findchan(chan))) {
notice_lang(s_MemoServ, u, CHAN_X_NOT_REGISTERED, chan);
return MOD_CONT;
+ } else if (readonly) {
+ notice_lang(s_MemoServ, u, READ_ONLY_MODE);
+ return MOD_CONT;
} else if (ci->flags & CI_VERBOTEN) {
notice_lang(s_MemoServ, u, CHAN_X_FORBIDDEN, chan);
return MOD_CONT;
diff --git a/src/modules.c b/src/modules.c
index d37454e67..2f42654da 100644
--- a/src/modules.c
+++ b/src/modules.c
@@ -585,15 +585,24 @@ int loadModule(Module * m, User * u)
}
if (func) {
version = (int (*)())ano_modsym(m->handle,"getAnopeBuildVersion");
- if(version && version() >= VERSION_BUILD ) {
- if(debug) {
- alog("Module %s compiled against anope revision %d, this is %d",m->name,version(),VERSION_BUILD);
- }
- } else {
+ if (version) {
+ if (version() >= VERSION_BUILD ) {
+ if(debug) {
+ alog("Module %s compiled against current or newer anope revision %d, this is %d",m->name,version(),VERSION_BUILD);
+ }
+ } else {
ano_modclose(m->handle);
- ano_modclearerr();
- alog("Module %s is compiled against an old version of anope",m->name);
- return MOD_ERR_NOLOAD;
+ ano_modclearerr();
+ alog("Module %s is compiled against an old version of anope (%d) current is %d", m->name, version(), VERSION_BUILD);
+ alog("Rebuild module %s against the current version to resolve this error", m->name);
+ return MOD_ERR_NOLOAD;
+ }
+ } else {
+ ano_modclose(m->handle);
+ ano_modclearerr();
+ alog("Module %s is compiled against an older version of anope (unknown)", m->name);
+ alog("Rebuild module %s against the current version to resolve this error", m->name);
+ return MOD_ERR_NOLOAD;
}
/* TODO */
mod_current_module_name = m->name;