1
0
mirror of https://github.com/anope/anope.git synced 2026-06-27 05:46:37 +02:00

Fixed /os reload doing weird things to service channels, and allow setting modes by clients on burst

This commit is contained in:
Adam
2011-09-19 18:35:40 -04:00
parent 7dce64e540
commit 43201ead95
11 changed files with 50 additions and 26 deletions
+3 -1
View File
@@ -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))
{