summaryrefslogtreecommitdiff
path: root/src/servers.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-09-19 18:35:40 -0400
committerAdam <Adam@anope.org>2011-09-19 18:35:40 -0400
commit43201ead9575a74e350710bc191f4ac67366aca7 (patch)
treee83dd66b689181548647d80e8d181eb13d190ba7 /src/servers.cpp
parent7dce64e5400b180f1645c683614ecc3eee2bfddd (diff)
Fixed /os reload doing weird things to service channels, and allow setting modes by clients on burst
Diffstat (limited to 'src/servers.cpp')
-rw-r--r--src/servers.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/servers.cpp b/src/servers.cpp
index 5a95bb85f..a912fcf1f 100644
--- a/src/servers.cpp
+++ b/src/servers.cpp
@@ -61,7 +61,9 @@ Server::Server(Server *uplink, const Anope::string &name, unsigned hops, const A
for (unsigned i = 0; i < bi->botchannels.size(); ++i)
{
size_t h = bi->botchannels[i].find('#');
- Anope::string chname = bi->botchannels[i].substr(h != Anope::string::npos ? h : 0);
+ if (h == Anope::string::npos)
+ continue;
+ Anope::string chname = bi->botchannels[i].substr(h);
Channel *c = findchan(chname);
if (c && c->FindUser(bi))
{