summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2013-12-12 01:34:01 +0100
committerAraq <rumpf_a@web.de>2013-12-12 01:34:01 +0100
commit6db20a4be8556621b3a33f87854b4b857c4dcf9e (patch)
treeb160173ad85e9c75f2a11d4746b971cac5c9e8ac /tests
parent29357ab556a25ea75d0cf837eace079b46d51fc8 (diff)
downloadNim-6db20a4be8556621b3a33f87854b4b857c4dcf9e.tar.gz
new VM: improvements
Diffstat (limited to 'tests')
-rw-r--r--tests/compile/tircbot.nim6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/compile/tircbot.nim b/tests/compile/tircbot.nim
index d16c99b69..6008838ff 100644
--- a/tests/compile/tircbot.nim
+++ b/tests/compile/tircbot.nim
@@ -257,7 +257,7 @@ proc limitCommitMsg(m: string): string =
 proc handleWebMessage(state: PState, line: string) =
   echo("Got message from hub: " & line)
   var json = parseJson(line)
-  if json.existsKey("payload"):
+  if json.hasKey("payload"):
     for i in 0..min(4, json["payload"]["commits"].len-1):
       var commit = json["payload"]["commits"][i]
       # Create the message
@@ -273,8 +273,8 @@ proc handleWebMessage(state: PState, line: string) =
 
       # Send message to #nimrod.
       state.ircClient.privmsg(joinChans[0], message)
-  elif json.existsKey("redisinfo"):
-    assert json["redisinfo"].existsKey("port")
+  elif json.hasKey("redisinfo"):
+    assert json["redisinfo"].hasKey("port")
     #let redisPort = json["redisinfo"]["port"].num
     state.dbConnected = true