Created
May 24, 2011 10:15
-
-
Save oyvindio/988470 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/main/scala/no/kvikshaug/gh/modules/Tracking.scala b/src/main/scala/no/kvikshaug/gh/modules/Tracking.scala | |
index 9bb7a12..e120337 100644 | |
--- a/src/main/scala/no/kvikshaug/gh/modules/Tracking.scala | |
+++ b/src/main/scala/no/kvikshaug/gh/modules/Tracking.scala | |
@@ -169,13 +169,13 @@ class Tracking(moduleHandler: ModuleHandler) extends Actor with TriggerListener | |
bot.msg(i.channel, i.status) | |
items = items.filterNot(_ == i) | |
sqlHandler.delete("delete from " + dbName + " where trackingId=?;", List(i.id).asJava) | |
- bot.msg(i.channel, "Removing this one from my list. Now tracking " + items.size + " packages.") | |
+ bot.msg(i.channel, "Removing this one from my list. Now tracking " + listPackages(i.channel).size + " packages.") | |
case "RETURNED" => | |
bot.msg(i.channel, i.owner + ": Package " + i.id + " has been returned to sender.") | |
bot.msg(i.channel, i.status) | |
items = items.filterNot(_ == i) | |
sqlHandler.delete("delete from " + dbName + " where trackingId=?;", List(i.id).asJava) | |
- bot.msg(i.channel, "Removing this one from my list. Now tracking " + items.size + " packages.") | |
+ bot.msg(i.channel, "Removing this one from my list. Now tracking " + listPackages(i.channel).size + " packages.") | |
case "PRE_NOTIFIED" => | |
bot.msg(i.channel, i.owner + ": Posten now knows about your package.") | |
bot.msg(i.channel, i.status) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment