IRCUser.isServer

Makes an educated guess that a sender is a server.

struct IRCUser
const @property pure @safe nothrow @nogc
isServer
()

Return Value

Type: auto

true if the sender nickname and/or address looks to be a server's, false if not.

Examples

IRCUser user;

user.address = "blah.freenode.net";
assert(user.isServer);

user.nickname = "foo";
assert(!user.isServer);

user.nickname = string.init;
user.address = "nodots";
assert(!user.isServer);  // unsure what to even make of no-dot addresses

// :kameloso MODE kameloso :+i
user.nickname = "kameloso";
user.address = string.init;
assert(!user.isServer);

Meta