com.leafdigital.irc.api
Class UserCTCPRequestIRCMsg
java.lang.Object
leafchat.core.api.Msg
com.leafdigital.irc.api.IRCMsg
com.leafdigital.irc.api.UserSourceIRCMsg
com.leafdigital.irc.api.UserIRCMsg
com.leafdigital.irc.api.UserCTCPRequestIRCMsg
- Direct Known Subclasses:
- UserActionIRCMsg
public class UserCTCPRequestIRCMsg
- extends UserIRCMsg
CTCP request sent to a user
Methods inherited from class com.leafdigital.irc.api.IRCMsg |
constructBytes, constructBytes, convertEncoding, convertISO, getCommand, getCommandBytes, getLine, getLineISO, getParamISO, getParams, getPrefix, getPrefixBytes, getServer, hasEncoding, includesPostfix, init, init, isParamInteger, setEncoding, splitBytes |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
info
public static MessageInfo info
- Scripting event information.
UserCTCPRequestIRCMsg
public UserCTCPRequestIRCMsg(IRCUserAddress source,
java.lang.String nick,
java.lang.String request,
byte[] text)
- Parameters:
source
- User that is in the message prefixnick
- Nickname of targetrequest
- CTCP request commandtext
- Text/parameters of message
getText
public byte[] getText()
- Returns:
- Text or parameters of message (everything after command); zero-length if none
getRequest
public java.lang.String getRequest()
- Returns:
- CTCP request command (upper-case)
hasResponded
public boolean hasResponded()
- Returns:
- True if the client has sent a response (so that it will still
be displayed, this message is not marked handled when a response is sent).
markResponded
public void markResponded()
- Indicates that the client has sent a response to this message
toString
public java.lang.String toString()
- Overrides:
toString
in class UserIRCMsg
Copyright © 2011 Samuel Marshall. All rights reserved.