Squishy.Irc.IrcClient.GetUser C# (CSharp) Method

GetUser() public method

public GetUser ( string nick ) : IrcUser
nick string The case-insensitive User'str nick.
return IrcUser
        public IrcUser GetUser(string nick)
        {
            IrcUser user;
            m_Users.TryGetValue(nick, out user);
            return user;
        }

Usage Example

Example #1
0
 /// <returns>Wether or not if the user with the specific nick is op on this channel (Has "@" flag)</returns>
 public bool HasOp(string nick)
 {
     return(HasPriv(m_irc.GetUser(nick), Privilege.Op));
 }