summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-14 20:43:45 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-14 20:43:45 +0000
commit13547ae3d3f448e92dc47bb4022c37fd742b78c8 (patch)
tree2f45fe8f6a361a1127497a64f881a6dea202346f /src
parent735927abfecbf40e7b2b176afe5eff82113438ba (diff)
Moved ModuleError()
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2453 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/commands.cpp4
-rw-r--r--src/inspircd_io.cpp6
2 files changed, 4 insertions, 6 deletions
diff --git a/src/commands.cpp b/src/commands.cpp
index d31099a8b..8cfc4d77b 100644
--- a/src/commands.cpp
+++ b/src/commands.cpp
@@ -176,7 +176,7 @@ void handle_loadmodule(char **parameters, int pcnt, userrec *user)
}
else
{
- WriteServ(user->fd,"974 %s %s :Failed to load module: %s",user->nick, parameters[0],ModuleError());
+ WriteServ(user->fd,"974 %s %s :Failed to load module: %s",user->nick, parameters[0],ServerInstance->ModuleError());
}
}
@@ -189,7 +189,7 @@ void handle_unloadmodule(char **parameters, int pcnt, userrec *user)
}
else
{
- WriteServ(user->fd,"972 %s %s :Failed to unload module: %s",user->nick, parameters[0],ModuleError());
+ WriteServ(user->fd,"972 %s %s :Failed to unload module: %s",user->nick, parameters[0],ServerInstance->ModuleError());
}
}
diff --git a/src/inspircd_io.cpp b/src/inspircd_io.cpp
index 7033284c4..56e80c57c 100644
--- a/src/inspircd_io.cpp
+++ b/src/inspircd_io.cpp
@@ -306,7 +306,7 @@ void ServerConfig::Read(bool bail, userrec* user)
}
else
{
- WriteServ(user->fd,"972 %s %s :Failed to unload module %s: %s",user->nick, removing->c_str(), removing->c_str(), ModuleError());
+ WriteServ(user->fd,"972 %s %s :Failed to unload module %s: %s",user->nick, removing->c_str(), removing->c_str(), ServerInstance->ModuleError());
}
}
if (!added_modules.empty())
@@ -320,7 +320,7 @@ void ServerConfig::Read(bool bail, userrec* user)
}
else
{
- WriteServ(user->fd,"974 %s %s :Failed to load module %s: %s",user->nick, adding->c_str(), adding->c_str(), ModuleError());
+ WriteServ(user->fd,"974 %s %s :Failed to load module %s: %s",user->nick, adding->c_str(), adding->c_str(), ServerInstance->ModuleError());
}
}
log(DEFAULT,"Successfully unloaded %lu of %lu modules and loaded %lu of %lu modules.",(unsigned long)rem,(unsigned long)removed_modules.size(),
@@ -329,8 +329,6 @@ void ServerConfig::Read(bool bail, userrec* user)
}
-void WriteOpers(char* text, ...);
-
void Exit (int status)
{
if (Config->log_file)