summaryrefslogtreecommitdiff
path: root/src/process.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2016-07-28 21:29:35 -0400
committerAdam <Adam@anope.org>2016-07-28 21:29:35 -0400
commit0e758a2ac23dc4a001e8e126cec14588da9a9769 (patch)
tree45df813323e023c5c89db7279426c4ad0943b4a9 /src/process.cpp
parenta3c8afae00c54d5b95c620248b51f90679d7d53f (diff)
Allow serializable fields to use storage in the respective objects.
Split service management code nito a proper servicemanager. Make service references managed instead of lazy lookup. Also made events and serializable use service manager instead of their respective systems for management
Diffstat (limited to 'src/process.cpp')
-rw-r--r--src/process.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/process.cpp b/src/process.cpp
index d14d8d589..e0beff9a7 100644
--- a/src/process.cpp
+++ b/src/process.cpp
@@ -51,12 +51,9 @@ void Anope::Process(const Anope::string &buffer)
MessageSource src(source);
- EventReturn MOD_RESULT;
- MOD_RESULT = Event::OnMessage(&Event::Message::OnMessage, src, command, params);
- if (MOD_RESULT == EVENT_STOP)
- return;
+ EventReturn MOD_RESULT = EventManager::Get()->Dispatch(&Event::Message::OnMessage, src, command, params);
- ServiceReference<IRCDMessage> m("IRCDMessage", proto_name + "/" + command.lower());
+ ServiceReference<IRCDMessage> m(proto_name + "/" + command.lower());
if (!m)
{
Log(LOG_DEBUG) << "unknown message from server (" << buffer << ")";