updateUser

Update a given nickname's entry in the seen array with the passed time, expressed in UNIX time.

This is not annotated as an IRC event handler and will merely be invoked from elsewhere, like any normal function.

version(WithSeenPlugin)
private
void
updateUser
(,
const string signed
,
const long time
,
const Flag!"skipModesignStrip" skipModesignStrip = No.skipModesignStrip
)

Parameters

plugin SeenPlugin

Current SeenPlugin.

signed string

Nickname to update, potentially prefixed with one or more modesigns (@, +, %, ...).

time long

UNIX timestamp of when the user was seen.

skipModesignStrip Flag!"skipModesignStrip"

Whether or not to explicitly not strip modesigns from the nickname.

Examples

string potentiallySignedNickname = "@kameloso";
long nowInUnix = Clock.currTime.toUnixTime();
updateUser(plugin, potentiallySignedNickname, nowInUnix);