virtual void On005Numeric(std::string &output)
{
- output.insert(output.find(" ", output.find("CHANMODES=", 0)), "z");
+ InsertMode(output, "z", 4);
}
virtual int OnUserPreJoin(userrec* user, chanrec* chan, const char* cname)
{
- if(chan && chan->IsCustomModeSet('z'))
+ if(chan && chan->IsModeSet('z'))
{
if(user->GetExt("ssl"))
{
{
if(!userlist[i]->GetExt("ssl"))
{
- WriteServ(user->fd, "974 %s %s :all members must be connected via SSL", user->nick, chan->name);
+ WriteServ(user->fd, "490 %s %s :all members of the channel must be connected via SSL", user->nick, chan->name);
return 0;
}
}