[Cherbot-commit] SF.net SVN: cherbot:[135] trunk/src/prj/net/sf/cherbot/connection/ IRCConnection.j
Status: Alpha
Brought to you by:
christianhujer
|
From: <chr...@us...> - 2008-12-14 12:39:59
|
Revision: 135
http://cherbot.svn.sourceforge.net/cherbot/?rev=135&view=rev
Author: christianhujer
Date: 2008-12-14 12:39:57 +0000 (Sun, 14 Dec 2008)
Log Message:
-----------
Added echo in case a message was unprocessed for better debugging.
Modified Paths:
--------------
trunk/src/prj/net/sf/cherbot/connection/IRCConnection.java
Modified: trunk/src/prj/net/sf/cherbot/connection/IRCConnection.java
===================================================================
--- trunk/src/prj/net/sf/cherbot/connection/IRCConnection.java 2008-12-14 12:39:11 UTC (rev 134)
+++ trunk/src/prj/net/sf/cherbot/connection/IRCConnection.java 2008-12-14 12:39:57 UTC (rev 135)
@@ -123,7 +123,10 @@
for (String line; (line = in.readLine()) != null;) {
System.out.print("> ");
System.out.println(line);
- delegator.process(line);
+ int matchesFound = delegator.process(line);
+ if (matchesFound == 0) {
+ System.err.println("Message unprocessed: " + line);
+ }
}
return 0;
} finally {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|