The (potentially) signed nickname to strip the prefix off.
The IRCServer whose prefix characters to strip.
The raw nickname, unsigned.
IRCServer server; immutable signed = "@+kameloso"; immutable nickname = signed.stripModeSign(server); assert((nickname == "kameloso"), nickname); assert((signs == "@+"), signs);
IRCServer server; server.prefixchars = [ '@' : 'o', '+' : 'v', '%' : 'h', ]; { immutable signed = "@+kameloso"; immutable nickname = signed.stripModesign(server); assert((nickname == "kameloso"), nickname); }
Convenience function to stripModesign that doesn't take an out string parameter to store the stripped modesign characters in.