nameOf

Returns either the nickname or the display name of a user, depending on whether the display name is known or not. Overload that looks up the passed nickname in the passed plugin's users associative array of IRCUsers.

If not version TwitchSupport then it always returns the nickname.

  1. auto nameOf(IRCUser user)
  2. auto nameOf(IRCPlugin plugin, string specified)
    pure @safe nothrow @nogc
    nameOf
    (,
    const string specified
    )

Parameters

plugin IRCPlugin

The current IRCPlugin, whatever it is.

specified string

The name of a user to look up.

Return Value

Type: auto

The nickname of the user if there is no alias known, else the alias.