Skip to content

Instantly share code, notes, and snippets.

@oyvindio
Created May 24, 2011 10:15
Show Gist options
  • Save oyvindio/988470 to your computer and use it in GitHub Desktop.
Save oyvindio/988470 to your computer and use it in GitHub Desktop.
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