IRCClient

IRC client implementation.

struct IRCClient {}

Members

Functions

admin
void admin(string server)
Undocumented in source. Be warned that the author may not have intended to support it.
away
void away(string message)
Undocumented in source. Be warned that the author may not have intended to support it.
away
void away()
Undocumented in source. Be warned that the author may not have intended to support it.
capList
void capList()
Undocumented in source. Be warned that the author may not have intended to support it.
changeNickname
void changeNickname(string nick)
Undocumented in source. Be warned that the author may not have intended to support it.
changeTopic
void changeTopic(Target target, string topic)
Undocumented in source. Be warned that the author may not have intended to support it.
clearMetadata
void clearMetadata(User user)
Undocumented in source. Be warned that the author may not have intended to support it.
clearMetadata
void clearMetadata(Channel channel)
Undocumented in source. Be warned that the author may not have intended to support it.
clearMetadata
void clearMetadata()
Undocumented in source. Be warned that the author may not have intended to support it.
ctcp
void ctcp(Target target, string command, string args)
Undocumented in source. Be warned that the author may not have intended to support it.
ctcp
void ctcp(Target target, string command)
Undocumented in source. Be warned that the author may not have intended to support it.
ctcpReply
void ctcpReply(Target target, string command, string args)
Undocumented in source. Be warned that the author may not have intended to support it.
endBatch
void endBatch(size_t id)
Undocumented in source. Be warned that the author may not have intended to support it.
getMetadata
void getMetadata(Channel channel, string[] keys)
Undocumented in source. Be warned that the author may not have intended to support it.
getMetadata
void getMetadata(User user, string[] keys)
Undocumented in source. Be warned that the author may not have intended to support it.
initialize
void initialize(NickInfo info)
Undocumented in source. Be warned that the author may not have intended to support it.
initialize
void initialize()
Undocumented in source. Be warned that the author may not have intended to support it.
isAuthenticated
bool isAuthenticated()
Undocumented in source. Be warned that the author may not have intended to support it.
isAway
bool isAway()
Undocumented in source. Be warned that the author may not have intended to support it.
isMe
bool isMe(User user)
Undocumented in source. Be warned that the author may not have intended to support it.
isOn
void isOn(string[] nicknames)
Undocumented in source. Be warned that the author may not have intended to support it.
isOn
void isOn(User[] users)
Undocumented in source. Be warned that the author may not have intended to support it.
isRegistered
bool isRegistered()
Undocumented in source. Be warned that the author may not have intended to support it.
isSubscribed
bool isSubscribed(string key)
Undocumented in source. Be warned that the author may not have intended to support it.
isValid
bool isValid()
Undocumented in source. Be warned that the author may not have intended to support it.
join
void join(T chans, U keys)
Undocumented in source. Be warned that the author may not have intended to support it.
join
void join(string chan, string key)
Undocumented in source. Be warned that the author may not have intended to support it.
join
void join(Channel chan, string key)
Undocumented in source. Be warned that the author may not have intended to support it.
kick
void kick(Channel chan, User nick, string message)
Undocumented in source. Be warned that the author may not have intended to support it.
lUsers
void lUsers()
Undocumented in source. Be warned that the author may not have intended to support it.
list
void list()
Undocumented in source. Be warned that the author may not have intended to support it.
listMetadata
void listMetadata(Channel channel)
Undocumented in source. Be warned that the author may not have intended to support it.
listMetadata
void listMetadata(User user)
Undocumented in source. Be warned that the author may not have intended to support it.
listSubscribedMetadata
void listSubscribedMetadata()
Undocumented in source. Be warned that the author may not have intended to support it.
me
auto me()
Undocumented in source. Be warned that the author may not have intended to support it.
monitorAdd
void monitorAdd(T users)
Undocumented in source. Be warned that the author may not have intended to support it.
monitorClear
void monitorClear()
Undocumented in source. Be warned that the author may not have intended to support it.
monitorIsEnabled
bool monitorIsEnabled()
Undocumented in source. Be warned that the author may not have intended to support it.
monitorList
void monitorList()
Undocumented in source. Be warned that the author may not have intended to support it.
monitorRemove
void monitorRemove(T users)
Undocumented in source. Be warned that the author may not have intended to support it.
monitorStatus
void monitorStatus()
Undocumented in source. Be warned that the author may not have intended to support it.
msg
void msg(string target, string message, IRCTags tags)
Undocumented in source. Be warned that the author may not have intended to support it.
msg
void msg(Target target, Message message, IRCTags tags)
Undocumented in source. Be warned that the author may not have intended to support it.
names
void names()
Undocumented in source. Be warned that the author may not have intended to support it.
notice
void notice(string target, string message)
Undocumented in source. Be warned that the author may not have intended to support it.
notice
void notice(Target target, Message message)
Undocumented in source. Be warned that the author may not have intended to support it.
oper
void oper(string name, string pass)
Undocumented in source. Be warned that the author may not have intended to support it.
ownMetadata
auto ownMetadata()
Undocumented in source. Be warned that the author may not have intended to support it.
ping
void ping()
Undocumented in source. Be warned that the author may not have intended to support it.
ping
void ping(string nonce)
Undocumented in source. Be warned that the author may not have intended to support it.
put
void put(string line)
Undocumented in source. Be warned that the author may not have intended to support it.
put
void put(immutable(ubyte)[] rawString)
Undocumented in source. Be warned that the author may not have intended to support it.
quit
void quit(string msg)
Undocumented in source. Be warned that the author may not have intended to support it.
rehash
void rehash()
Undocumented in source. Be warned that the author may not have intended to support it.
restart
void restart()
Undocumented in source. Be warned that the author may not have intended to support it.
setMetadata
void setMetadata(User user, string key, string data)
Undocumented in source. Be warned that the author may not have intended to support it.
setMetadata
void setMetadata(Channel channel, string key, string data)
Undocumented in source. Be warned that the author may not have intended to support it.
setMetadata
void setMetadata(string key, string data)
Undocumented in source. Be warned that the author may not have intended to support it.
squit
void squit(string server, string reason)
Undocumented in source. Be warned that the author may not have intended to support it.
startBatch
size_t startBatch(string type, IRCTags tags, T args)
Undocumented in source. Be warned that the author may not have intended to support it.
subscribeMetadata
void subscribeMetadata(string[] keys)
Undocumented in source. Be warned that the author may not have intended to support it.
syncMetadata
void syncMetadata(User user)
Undocumented in source. Be warned that the author may not have intended to support it.
syncMetadata
void syncMetadata(Channel channel)
Undocumented in source. Be warned that the author may not have intended to support it.
syncMetadata
void syncMetadata()
Undocumented in source. Be warned that the author may not have intended to support it.
tagMsg
void tagMsg(string target, IRCTags tags)
Undocumented in source. Be warned that the author may not have intended to support it.
tagMsg
void tagMsg(Target target, IRCTags tags)
Undocumented in source. Be warned that the author may not have intended to support it.
unsubscribeMetadata
void unsubscribeMetadata(string[] keys)
Undocumented in source. Be warned that the author may not have intended to support it.
version_
void version_()
Undocumented in source. Be warned that the author may not have intended to support it.
version_
void version_(string serverMask)
Undocumented in source. Be warned that the author may not have intended to support it.
wallops
void wallops(string message)
Undocumented in source. Be warned that the author may not have intended to support it.
whois
void whois(string nick)
Undocumented in source. Be warned that the author may not have intended to support it.

Structs

ClientState
struct ClientState
Undocumented in source.

Variables

capsEnabled
Capability[] capsEnabled;
channelMetadata
MetadataValue[string][Channel] channelMetadata;

Channel metadata received so far

channels
ChannelState[string] channels;
internalAddressList
InternalAddressList internalAddressList;
nickinfo
NickInfo nickinfo;
Undocumented in source.
onAwayReply
void delegate(const User, const MessageMetadata) @(safe) onAwayReply;
onBack
void delegate(const User, const MessageMetadata) @(safe) onBack;
onChannelListUpdate
void delegate(const User, const User, const Channel, ChannelListUpdateType) @(safe) onChannelListUpdate;

Called whenever a channel user list is updated

onChgHost
void delegate(const User, const User, const MessageMetadata) @(safe) onChgHost;
onConnect
void delegate() @(safe) onConnect;
onError
void delegate(const IRCError, const MessageMetadata) @(safe) onError;
onInvite
void delegate(const User, const User, const Channel, const MessageMetadata) @(safe) onInvite;
onIsOn
void delegate(const User, const MessageMetadata) @(safe) onIsOn;

Called when an RPL_ISON message is received

onJoin
void delegate(const User, const Channel, const MessageMetadata) @(safe) onJoin;
onKick
void delegate(const User, const Channel, const User, const string, const MessageMetadata) @(safe) onKick;
onLUserChannels
void delegate(const LUserChannels, const MessageMetadata) @(safe) onLUserChannels;
onLUserClient
void delegate(const LUserClient, const MessageMetadata) @(safe) onLUserClient;
onLUserMe
void delegate(const LUserMe, const MessageMetadata) @(safe) onLUserMe;
onLUserOp
void delegate(const LUserOp, const MessageMetadata) @(safe) onLUserOp;
onList
void delegate(const ChannelListResult, const MessageMetadata) @(safe) onList;
onLogin
void delegate(const User, const MessageMetadata) @(safe) onLogin;
onLogout
void delegate(const User, const MessageMetadata) @(safe) onLogout;
onMessage
void delegate(const User, const Target, const Message, const MessageMetadata) @(safe) onMessage;
onMetadataSubList
void delegate(const string, const MessageMetadata) @(safe) onMetadataSubList;

Called when a metadata subscription list is received

onMode
void delegate(const User, const Target, const ModeChange, const MessageMetadata) @(safe) onMode;
onMonitorList
void delegate(const User, const MessageMetadata) @(safe) onMonitorList;
onNamesReply
void delegate(const NamesReply, const MessageMetadata) @(safe) onNamesReply;
onNick
void delegate(const User, const User, const MessageMetadata) @(safe) onNick;
onOtherUserAwayReply
void delegate(const User, const string, const MessageMetadata) @(safe) onOtherUserAwayReply;
onPart
void delegate(const User, const Channel, const string, const MessageMetadata) @(safe) onPart;
onQuit
void delegate(const User, const string, const MessageMetadata) @(safe) onQuit;
onRaw
void delegate(const MessageMetadata) @(safe) onRaw;
onReceiveCapAck
void delegate(const Capability, const MessageMetadata) @(safe) onReceiveCapAck;
onReceiveCapDel
void delegate(const Capability, const MessageMetadata) @(safe) onReceiveCapDel;
onReceiveCapLS
void delegate(const Capability, const MessageMetadata) @(safe) onReceiveCapLS;
onReceiveCapList
void delegate(const Capability, const MessageMetadata) @(safe) onReceiveCapList;
onReceiveCapNak
void delegate(const Capability, const MessageMetadata) @(safe) onReceiveCapNak;
onReceiveCapNew
void delegate(const Capability, const MessageMetadata) @(safe) onReceiveCapNew;
onSend
void delegate(const string) @(safe) onSend;
onServerRehashing
void delegate(const RehashingReply, const MessageMetadata) @(safe) onServerRehashing;
onTopicChange
void delegate(const User, const Channel, const string, const MessageMetadata) @(safe) onTopicChange;
onTopicReply
void delegate(const TopicReply, const MessageMetadata) @(safe) onTopicReply;
onTopicWhoTimeReply
void delegate(const TopicWhoTime, const MessageMetadata) @(safe) onTopicWhoTimeReply;
onUnAwayReply
void delegate(const User, const MessageMetadata) @(safe) onUnAwayReply;
onUserOffline
void delegate(const User, const MessageMetadata) @(safe) onUserOffline;
onUserOnline
void delegate(const User, const SysTime, const MessageMetadata) @(safe) onUserOnline;
onVersionReply
void delegate(const VersionReply, const MessageMetadata) @(safe) onVersionReply;
onWHOXReply
void delegate(const WHOXReply, const MessageMetadata) @(safe) onWHOXReply;
onWallops
void delegate(const User, const string, const MessageMetadata) @(safe) onWallops;
onWhois
void delegate(const User, const WhoisResponse) @(safe) onWhois;
onYoureOper
void delegate(const MessageMetadata) @(safe) onYoureOper;
output
Output output;
Undocumented in source.
password
Nullable!string password;
Undocumented in source.
saslMechs
SASLMechanism[] saslMechs;

SASL mechanisms available for usage

server
Server server;
userMetadata
MetadataValue[string][User] userMetadata;

User metadata received so far

Meta