The current plugin's IRCPluginState, via which to send messages to the server.
Optionally, the reason for quitting.
Custom message properties, such as Message.Property.quiet and Message.Property.forced.
String name of the calling function, or something else that gives context.
IRCPluginState state; enum properties = Message.Property.quiet; quit(state, "reason", properties); immutable m = state.outgoingMessages.data[0]; with (m.event) { assert((type == IRCEvent.Type.QUIT), Enum!(IRCEvent.Type).toString(type)); assert((content == "reason"), content); assert(m.caller.length); assert(m.properties & (Message.Property.forced | Message.Property.priority | Message.Property.quiet)); }
Disconnects from the server, optionally with a quit reason.