- // user messaging a +R user and is not registered
- Srv->SendServ(user->fd,"477 "+std::string(user->nick)+" "+std::string(u->nick)+" :You need to be identified to a registered account to message this user");
- return 1;
- }
- }
- return 0;
- }
-
- virtual int OnUserPreNotice(userrec* user,void* dest,int target_type, std::string &text, char status)
- {
- return OnUserPreMessage(user, dest, target_type, text, status);
- }
-
- virtual int OnUserPreJoin(userrec* user, chanrec* chan, const char* cname)
- {
- std::string *account;
- user->GetExt("accountname", account);
-
- if (chan)
- {
- if (chan->IsModeSet('R'))