diff options
author | Adam <Adam@anope.org> | 2011-04-25 03:16:57 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-05-16 04:07:56 -0400 |
commit | 076ebafa1b4cc935c466c615b94eaac415af9a67 (patch) | |
tree | dbc8b0f9e7b6f954569c13ad35598f5ebe8a081d /modules/protocol/plexus.cpp | |
parent | 6922bd239c778e8f6f2081476ce20b9426c515ad (diff) |
Moved some global functions to be member functions and misc cleanup
Diffstat (limited to 'modules/protocol/plexus.cpp')
-rw-r--r-- | modules/protocol/plexus.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/modules/protocol/plexus.cpp b/modules/protocol/plexus.cpp index a078e6b77..84faec449 100644 --- a/modules/protocol/plexus.cpp +++ b/modules/protocol/plexus.cpp @@ -166,7 +166,8 @@ class PlexusProto : public IRCDProto void SendClientIntroduction(const User *u, const Anope::string &modes) { - EnforceQlinedNick(u->nick, ""); + XLine x(u->nick, "Reserved for services"); + ircdproto->SendSQLine(NULL, &x); send_cmd(Config->Numeric, "UID %s 1 %ld %s %s %s 255.255.255.255 %s 0 %s :%s", u->nick.c_str(), static_cast<long>(u->timestamp), modes.c_str(), u->GetIdent().c_str(), u->host.c_str(), u->GetUID().c_str(), u->host.c_str(), u->realname.c_str()); } @@ -228,7 +229,10 @@ class PlexusProto : public IRCDProto void SendChannel(Channel *c) { - send_cmd(Config->Numeric, "SJOIN %ld %s %s :", static_cast<long>(c->creation_time), c->name.c_str(), get_mlock_modes(c->ci, true).c_str()); + Anope::string modes = c->GetModes(true, true); + if (modes.empty()) + modes = "+"; + send_cmd(Config->Numeric, "SJOIN %ld %s %s :", static_cast<long>(c->creation_time), c->name.c_str(), modes.c_str()); } }; |