diff options
| author | Adam <Adam@anope.org> | 2010-10-04 16:54:39 -0400 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2010-10-04 16:54:39 -0400 |
| commit | 58a3e2bbb76f00465a6cf5a9b1e97ef002560bee (patch) | |
| tree | 0f4beb57aa0dd3f10a7febf6144dc4adac662765 /modules | |
| parent | ab5ebc224516abfe424f2e631eed2dc314c32ab9 (diff) | |
Allow reloading of the protocol module with /operserv modreload
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/core/os_modreload.cpp | 2 | ||||
| -rw-r--r-- | modules/protocol/inspircd20.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/core/os_modreload.cpp b/modules/core/os_modreload.cpp index 5cb8c60e8..efbc680af 100644 --- a/modules/core/os_modreload.cpp +++ b/modules/core/os_modreload.cpp @@ -37,7 +37,7 @@ class CommandOSModReLoad : public Command return MOD_CONT; } - if (m->GetPermanent() || m->type == PROTOCOL) // TODO: make protocol modules reloadable + if (m->GetPermanent()) { u->SendMessage(OperServ, OPER_MODULE_NO_UNLOAD); return MOD_CONT; diff --git a/modules/protocol/inspircd20.cpp b/modules/protocol/inspircd20.cpp index 653989f5b..6fc00e7d9 100644 --- a/modules/protocol/inspircd20.cpp +++ b/modules/protocol/inspircd20.cpp @@ -1128,7 +1128,7 @@ bool event_endburst(const Anope::string &source, const std::vector<Anope::string Server *s = Server::Find(source); if (!s) - throw new CoreException("Got ENDBURST without a source"); + throw CoreException("Got ENDBURST without a source"); /* Check if the previously introduced user was Id'd for the nickgroup of the nick he s currently using. * If not, validate the user. ~ Viper*/ |
