diff options
author | Adam <Adam@anope.org> | 2011-09-19 18:35:40 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-09-19 18:35:40 -0400 |
commit | 43201ead9575a74e350710bc191f4ac67366aca7 (patch) | |
tree | e83dd66b689181548647d80e8d181eb13d190ba7 /src/servers.cpp | |
parent | 7dce64e5400b180f1645c683614ecc3eee2bfddd (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.cpp | 4 |
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)) { |