uk.org.ownage.dmdirc.parser.callbacks
uk.org.ownage.dmdirc.parser.callbacks.interfaces
Made Server/Channel/Raw use new packages.
Fixed on*Action calls having a trailing \001
addCallback now throws an exception, addNonCriticalCallback returns true/false instead.
git-svn-id: http://svn.dmdirc.com/trunk@21000569f92-eb28-0410-84fd-f71c24880f
To add a callback now, use: myIRCParser.getCallbackManager().addCallback("OnDebugInfo", this[, "#channel"])
(the channel parameter is taken only by Channel callbacks - excluding ChannelSelfJoin)
git-svn-id: http://svn.dmdirc.com/trunk@20400569f92-eb28-0410-84fd-f71c24880f
Fixed NicklistListModel not setting the config options it accessed
Added some logging defaults to Config
Seperated Logger's logging into 3 files, added config checks as to whether to write to these
git-svn-id: http://svn.dmdirc.com/trunk@20300569f92-eb28-0410-84fd-f71c24880f
* Added Channel.close(), Raw.close() and Server.close()
* Added Server.disconnect()
* Added MainFrame.delChild()
* Implemented ServerManager.disconnectAll() and added ServerManager.closeAll()
* Raw's parser callbacks are now normal methods not AICs
git-svn-id: http://svn.dmdirc.com/trunk@19200569f92-eb28-0410-84fd-f71c24880f
* Updated command parser to create a new set of arguments for passing to Commands
* Updated Command to include a protected method to implode arguments
* Updated Quit command to actually use the user supplied method
* Updated Channel class to include a method to send an action
git-svn-id: http://svn.dmdirc.com/trunk@19000569f92-eb28-0410-84fd-f71c24880f
IRCParser now does all debugging via onDebugInfo regardless of bDebug. (altho some will be removed if bDebug is set to false)
git-svn-id: http://svn.dmdirc.com/trunk@18500569f92-eb28-0410-84fd-f71c24880f
onError now uses a ParserError object and passes that to the callback instead. This allows for more flexability, and keeps the logic
for determining the error type inside the parser (isError() isFatal() etc.).
It also allows for the Exception object thrown when callbacks or the parser fail to be passed back aswell.
if the callOnError method gets an exception it now logs to the console rather than trying to recall itself (thus giving an infinite
loop)
git-svn-id: http://svn.dmdirc.com/trunk@18300569f92-eb28-0410-84fd-f71c24880f
* Added default quit message to config
* ServerFrame and ChannelFrame now check to see if the command parser throws an exception, and logs it if it does
* Added method to CommandManager to get a server command by its signature
* Added a (stub) method to ServerManager to disconnect all servers
git-svn-id: http://svn.dmdirc.com/trunk@16900569f92-eb28-0410-84fd-f71c24880f
The origin argument is now passed to ServerCommand objects
Updated test/0 to output to the source window, rather than the server
git-svn-id: http://svn.dmdirc.com/trunk@16700569f92-eb28-0410-84fd-f71c24880f