+ if (mask[0] == 'r')
+ {
+ if (InspIRCd::Match(user->GetRealName(), mask.substr(2)))
+ return MOD_RES_DENY;
+ }
+ else if (mask[0] == 'a')
+ {
+ // Check that the user actually specified a real name.
+ const size_t divider = mask.find('+', 1);
+ if (divider == std::string::npos)
+ return MOD_RES_PASSTHRU;
+
+ // Check whether the user's mask matches.
+ if (!c->CheckBan(user, mask.substr(2, divider - 2)))
+ return MOD_RES_PASSTHRU;
+
+ // Check whether the user's real name matches.
+ if (InspIRCd::Match(user->GetRealName(), mask.substr(divider + 1)))
+ return MOD_RES_DENY;
+ }