The nickname or account of the passed user, or the passed nickname if nothing was found.
final class MyPlugin : IRCPlugin { mixin IRCPluginImpl; } IRCPluginState state; IRCPlugin plugin = new MyPlugin(state); IRCUser newUser; newUser.nickname = "nickname"; plugin.state.users["nickname"] = newUser; immutable nickname = idOf(plugin, "nickname"); assert((nickname == "nickname"), nickname); plugin.state.users["nickname"].account = "account"; immutable account = idOf(plugin, "nickname"); assert((account == "account"), account);
Returns either the nickname or the account of a user, depending on whether the account is known. Overload that looks up the passed nickname in the passed plugin's users associative array of IRCUsers.
Merely wraps getUser with idOf.