kaguya v0.5.1 Kaguya.Util
Summary
Functions
Sets MODE +b on mask
in chan
where mask
can be !@vhost.com
This bans a user from chan
Looks up a channel’s pid and returns it if it exists, nil otherwise
Returns the docstring for a handler in a module
Sends a WHOIS query to a server for a nick and returns a Kaguya.Core.User struct if it was succesful. Otherwise nil is returned
Sends the IRC server the JOIN command
Kicks user
from chan
Kicks user
from chan
with the reason reason
Loads a module
Sends the IRC server the PART command
Unloads then loads a module
Sends the NICK command to the IRC server, with the given nick
Sends a NOTICE to a recipient on the IRC server
Sends a PRIVMSG to a recipient on the IRC server
Sends the PASS command to the IRC server with the given password
Sends the USER command to the IRC server, with the given name, and an optional realname param
Sets MODE mode
on chan
.
Example:
chan
is “#sekrit”
mode
is “+s”
Sets MODE mode
on trailing
in chan
.
Example:
chan
is “#sekrit”,
mode
is “+b”
and trailing
is “baduser”
Sets MODE -b on mask
in chan
where mask
can be !@vhost.com
This unbans a user from chan
Unloads a module
Functions
Sets MODE +b on mask
in chan
where mask
can be !@vhost.com
This bans a user from chan
.
Sends a WHOIS query to a server for a nick and returns a Kaguya.Core.User struct if it was succesful. Otherwise nil is returned.
Sends the USER command to the IRC server, with the given name, and an optional realname param.
Sets MODE mode
on chan
.
Example:
chan
is “#sekrit”
mode
is “+s”
This will make the #sekrit channel secret.
Sets MODE mode
on trailing
in chan
.
Example:
chan
is “#sekrit”,
mode
is “+b”
and trailing
is “baduser”
This will set +b on baduser!@
Sets MODE -b on mask
in chan
where mask
can be !@vhost.com
This unbans a user from chan
.