gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnunet-nim] branch master updated: make groupchat compi│··


From: gnunet
Subject: [GNUnet-SVN] [gnunet-nim] branch master updated: make groupchat compi│····· le with nim-0.19
Date: Sat, 03 Nov 2018 14:27:58 +0100

This is an automated email from the git hooks/post-receive script.

lurchi pushed a commit to branch master
in repository gnunet-nim.

The following commit(s) were added to refs/heads/master by this push:
     new 610f2dd  make groupchat compi│····· le with nim-0.19
610f2dd is described below

commit 610f2dd1145637d3414cd24f6d3d389629f19da3
Author: lurchi <address@hidden>
AuthorDate: Sat Nov 3 14:27:27 2018 +0100

    make groupchat compi│·····
    le with nim-0.19
---
 examples/groupchat.nim | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/examples/groupchat.nim b/examples/groupchat.nim
index d6ef46d..b86318e 100644
--- a/examples/groupchat.nim
+++ b/examples/groupchat.nim
@@ -39,7 +39,7 @@ proc firstTask(gnunetApp: ref GnunetApplication,
   let cadet = await gnunetApp.initCadet()
   var chat = new(Chat)
   chat.channels = newSeq[ref CadetChannel]()
-  if not server.isNil():
+  if server != "":
     let inputFile = openAsync("/dev/stdin", fmRead)
     let channel = cadet.createChannel(server, port)
     await processServerMessages(channel) or processInput(inputFile, channel)
@@ -76,15 +76,15 @@ proc main() =
       of "port", "p": port = value
     else:
       assert(false)
-  if configfile.isNil():
+  if configfile == "":
     echo "I need a config file to use."
     echo "  Add -c=<gnunet.conf>"
     return
-  if port.isNil():
+  if port == "":
     echo "I need a shared secret port to use."
     echo "  Add -p=<sharedsecret>"
     return
-  if server.isNil():
+  if server == "":
     echo "Entering server mode."
   var gnunetApp = initGnunetApplication(configfile)
   asyncCheck firstTask(gnunetApp, server, port)

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]