user->WriteServ(checkstr + " realnuh " + targuser->GetFullRealHost());
user->WriteServ(checkstr + " realname " + targuser->fullname);
user->WriteServ(checkstr + " modes +" + targuser->FormatModes());
+ user->WriteServ(checkstr + " snomasks +" + targuser->FormatNoticeMasks());
user->WriteServ(checkstr + " server " + targuser->server);
if (targuser->awaymsg[0] != 0)
{
if (targuser->oper[0] != 0)
{
/* user is an oper of type ____ */
- user->WriteServ(checkstr + " opertype " + targuser->oper);
+ user->WriteServ(checkstr + " opertype " + irc::Spacify(targuser->oper));
}
if (IS_LOCAL(targuser))
{
long x = 0;
/* hostname or other */
- for (user_hash::const_iterator a = ServerInstance->clientlist.begin(); a != ServerInstance->clientlist.end(); a++)
+ for (user_hash::const_iterator a = ServerInstance->clientlist->begin(); a != ServerInstance->clientlist->end(); a++)
{
if (match(a->second->host, parameters[0]) || match(a->second->dhost, parameters[0]))
{
user->WriteServ(checkstr + " match " + ConvToStr(++x) + " " + a->second->GetFullRealHost());
}
/* IP address */
- else if (match(a->second->GetIPString(), parameters[0]))
+ else if (match(a->second->GetIPString(), parameters[0], true))
{
/* same IP. */
user->WriteServ(checkstr + " match " + ConvToStr(++x) + " " + a->second->GetFullRealHost());
user->WriteServ(checkstr + " END " + std::string(parameters[0]));
- return CMD_SUCCESS;
+ return CMD_LOCALONLY;
}
};