summaryrefslogtreecommitdiff
path: root/modules/protocol/ratbox.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2010-12-29 23:12:26 -0500
committerAdam <Adam@anope.org>2010-12-29 23:12:26 -0500
commit72b8f4609b147b9b9a222c14bfc4ae100cc7f250 (patch)
tree3b5fde173f448176878036b2c718682d09f90188 /modules/protocol/ratbox.cpp
parentd36e53f702f6f166e862c88dd2399bef91e9d1d5 (diff)
Use empty SJOINs when allowed to create empty permanent channels
Diffstat (limited to 'modules/protocol/ratbox.cpp')
-rw-r--r--modules/protocol/ratbox.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/modules/protocol/ratbox.cpp b/modules/protocol/ratbox.cpp
index 914010b98..43debc78d 100644
--- a/modules/protocol/ratbox.cpp
+++ b/modules/protocol/ratbox.cpp
@@ -232,6 +232,11 @@ class RatboxProto : public IRCDProto
send_cmd(Config->Numeric, "ENCAP * SU %s", u->GetUID().c_str());
}
+ void SendChannel(Channel *c, const Anope::string &modes)
+ {
+ send_cmd("", "SJOIN %ld %s %s :", static_cast<long>(c->creation_time), c->name.c_str(), modes.c_str());
+ }
+
bool IsNickValid(const Anope::string &nick)
{
/* TS6 Save extension -Certus */
@@ -377,9 +382,6 @@ class RatboxIRCdMessage : public IRCdMessage
{
c->creation_time = ts;
c->Reset();
-
- /* Reset mlock */
- check_modes(c);
}
/* Their TS is newer than ours, our modes > theirs, unset their modes if need be */
else if (ts > c->creation_time)