mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-11 11:39:02 -04:00
Send usermodes on whois if user is self or opered
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9440 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
3ac032f3f6
commit
e58161f80d
@ -64,6 +64,18 @@ void do_whois(InspIRCd* ServerInstance, User* user, User* dest,unsigned long sig
|
||||
ServerInstance->SendWhoisLine(user, dest, 313, "%s %s :is %s %s on %s",user->nick, dest->nick, (strchr("AEIOUaeiou",*dest->oper) ? "an" : "a"),irc::Spacify(dest->oper), ServerInstance->Config->Network);
|
||||
}
|
||||
|
||||
if (user == dest || IS_OPER(user))
|
||||
{
|
||||
if (dest->modes[UM_SNOMASK] != 0)
|
||||
{
|
||||
ServerInstance->SendWhoisLine(user, dest, 379, "%s %s :is using modes +%s +%s", user->nick, dest->nick, dest->FormatModes(), dest->FormatNoticeMasks());
|
||||
}
|
||||
else
|
||||
{
|
||||
ServerInstance->SendWhoisLine(user, dest, 379, "%s %s :is using modes +%s", user->nick, dest->nick, dest->FormatModes());
|
||||
}
|
||||
}
|
||||
|
||||
FOREACH_MOD(I_OnWhois,OnWhois(user,dest));
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user