+ // this is called when the server is linking into a net and wants to sync channel data.
+ // we should send our mode changes for the channel here to ensure that other servers
+ // know whos +q/+a on the channel.
+ chanuserlist cl = Srv->GetUsers(chan);
+ string_list commands;
+ for (int i = 0; i < cl.size(); i++)
+ {
+ if (cl[i]->GetExt("cm_founder_"+std::string(chan->name)))
+ {
+ commands.push_back("M "+std::string(chan->name)+" +q "+std::string(cl[i]->nick));
+ }
+ if (cl[i]->GetExt("cm_protect_"+std::string(chan->name)))
+ {
+ commands.push_back("M "+std::string(chan->name)+" +a "+std::string(cl[i]->nick));
+ }
+ }
+ return commands;