}
else
{
- source->WriteServ("500 %s :Only a server may modify the +r channel mode", source->nick);
+ source->WriteNumeric(500, "%s :Only a server may modify the +r channel mode", source->nick);
return MODEACTION_DENY;
}
}
}
else
{
- source->WriteServ("500 %s :Only a server may modify the +r user mode", source->nick);
+ source->WriteNumeric(500, "%s :Only a server may modify the +r user mode", source->nick);
return MODEACTION_DENY;
}
}
return 0;
}
// user messaging a +M channel and is not registered
- user->WriteServ("477 %s %s :You need a registered nickname to speak on this channel", user->nick, c->name);
+ user->WriteNumeric(477, "%s %s :You need a registered nickname to speak on this channel", user->nick, c->name);
return 1;
}
}
return 0;
}
// user messaging a +R user and is not registered
- user->WriteServ("477 %s %s :You need a registered nickname to message this user", user->nick, u->nick);
+ user->WriteNumeric(477, "%s %s :You need a registered nickname to message this user", user->nick, u->nick);
return 1;
}
}
return 0;
}
// joining a +R channel and not identified
- user->WriteServ("477 %s %s :You need a registered nickname to join this channel", user->nick, chan->name);
+ user->WriteNumeric(477, "%s %s :You need a registered nickname to join this channel", user->nick, chan->name);
return 1;
}
}
virtual Version GetVersion()
{
- return Version(1,1,0,0,VF_COMMON|VF_VENDOR,API_VERSION);
+ return Version(1,2,0,0,VF_COMMON|VF_VENDOR,API_VERSION);
}
};