-
-
-
-
-
-
-
-
-
-
+
-
-
-
+
-
-
-
-
-
-
-
-
-
-
-
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
-
-
-
-
+
-
-
-
-
-
+
-
-
-
+
-
-
-
-
-
+
-
-
-
-
-
+
-
-
-
-
-
+
-
-
-
-
-
-
-
-
-
-
-
-
+
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/net/thauvin/erik/mobibot/Mobibot.java b/src/net/thauvin/erik/mobibot/Mobibot.java
index 49a7ac6..b5852f6 100644
--- a/src/net/thauvin/erik/mobibot/Mobibot.java
+++ b/src/net/thauvin/erik/mobibot/Mobibot.java
@@ -94,7 +94,8 @@ public class Mobibot extends PircBot
* The version strings.
*/
private static final String[] VERSION_STRS =
- {"Version: " + ReleaseInfo.getVersion() + '.' + ReleaseInfo.getBuildNumber() + " (" + ISO_SDF.format(ReleaseInfo.getBuildDate()) + ')',
+ {"Version: " + ReleaseInfo.getVersion() + '.' + ReleaseInfo.getBuildNumber() + " ("
+ + ISO_SDF.format(ReleaseInfo.getBuildDate()) + ')',
"Platform: " + System.getProperty("os.name") + " (" + System.getProperty("os.version") + ", "
+ System.getProperty("os.arch") + ", " + System.getProperty("user.country") + ')',
"Runtime: " + System.getProperty("java.runtime.name") + " (build "
@@ -1263,8 +1264,9 @@ public class Mobibot extends PircBot
{
if (_logger.isDebugEnabled())
{
- _logger.debug("Unable to reconnect to " + _ircServer + " after " + MAX_RECONNECT + " retries.",
- ex);
+ _logger.debug(
+ "Unable to reconnect to " + _ircServer + " after " + MAX_RECONNECT + " retries.",
+ ex);
}
e.printStackTrace(System.err);
@@ -2722,7 +2724,6 @@ public class Mobibot extends PircBot
SyndEntry item;
SyndContent description;
String[] comments;
- String[] comment;
String author;
EntryLink entry;
@@ -2740,13 +2741,14 @@ public class Mobibot extends PircBot
description = item.getDescription();
comments = description.getValue().split("
");
+ int split;
for (int j = 0; j < comments.length; j++)
{
- comment = comments[j].split(":");
+ split = comments[j].indexOf(": ");
- if (comment.length == 2)
+ if (split != -1)
{
- entry.addComment(comment[1].trim(), comment[0]);
+ entry.addComment(comments[j].substring(split + 2).trim(), comments[j].substring(0, split));
}
}
@@ -2886,10 +2888,12 @@ public class Mobibot extends PircBot
{
entry = (EntryLink) _entries.get(i);
- buff = new StringBuffer(0);
+ buff = new StringBuffer("Posted by " + entry.getNick() + " on " + entry.getChannel() + " (" + _ircServer + ")");
if (entry.getCommentsCount() > 0)
{
+ buff.append("
");
+
final EntryComment[] comments = entry.getComments();
for (int j = 0; j < comments.length; j++)
diff --git a/src/net/thauvin/erik/mobibot/ReleaseInfo.java b/src/net/thauvin/erik/mobibot/ReleaseInfo.java
index a26391d..09408ce 100644
--- a/src/net/thauvin/erik/mobibot/ReleaseInfo.java
+++ b/src/net/thauvin/erik/mobibot/ReleaseInfo.java
@@ -1,5 +1,5 @@
/* Created by JReleaseInfo AntTask from Open Source Competence Group */
-/* Creation date Wed Sep 15 03:24:37 PDT 2010 */
+/* Creation date Thu Sep 16 15:15:36 PDT 2010 */
package net.thauvin.erik.mobibot;
import java.util.Date;
@@ -20,21 +20,21 @@ public class ReleaseInfo {
}
- /** buildDate (set during build process to 1284546277926L). */
- private static final Date buildDate = new Date(1284546277926L);
+ /** buildDate (set during build process to 1284675336375L). */
+ private static final Date buildDate = new Date(1284675336375L);
/**
- * Get buildDate (set during build process to Wed Sep 15 03:24:37 PDT 2010).
+ * Get buildDate (set during build process to Thu Sep 16 15:15:36 PDT 2010).
* @return Date buildDate
*/
public static Date getBuildDate() { return buildDate; }
/**
- * Get buildNumber (set during build process to 0).
+ * Get buildNumber (set during build process to 1).
* @return int buildNumber
*/
- public static int getBuildNumber() { return 0; }
+ public static int getBuildNumber() { return 1; }
/** project (set during build process to "mobibot"). */
diff --git a/website/index.html b/website/index.html
index ec80add..dec9789 100644
--- a/website/index.html
+++ b/website/index.html
@@ -21,8 +21,8 @@
delicious-java
JWeather
MathEvaluator
+ OstermillerUtils
Rome
- Apache XML-RPC
Twitter4J
mobibot was written by Erik C. Thauvin as a replacement for the channel's original ChumpBot.