- // user messaging a +R user and is not registered
- user->WriteServ("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(User* user,void* dest,int target_type, std::string &text, char status, CUList &exempt_list)
- {
- return OnUserPreMessage(user, dest, target_type, text, status, exempt_list);
- }
-
- virtual int OnUserPreJoin(User* user, Channel* chan, const char* cname, std::string &privs)
- {
- std::string *account;
- user->GetExt("accountname", account);
-
- if (chan)
- {
- if (chan->IsModeSet('R'))