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:
+3
-1
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user