diff options
Diffstat (limited to 'lib/pure/irc.nim')
-rw-r--r-- | lib/pure/irc.nim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/pure/irc.nim b/lib/pure/irc.nim index 0397502cd..7e1cd0eca 100644 --- a/lib/pure/irc.nim +++ b/lib/pure/irc.nim @@ -205,15 +205,15 @@ proc poll*(irc: var TIRC, ev: var TIRCEvent, ## This function should be called often as it also handles pinging ## the server. if not irc.connected: ev.typ = EvDisconnected - var line = "" + var line = TaintedString"" var socks = @[irc.sock] var ret = socks.select(timeout) if socks.len() == 0 and ret == 1: if irc.sock.recvLine(line): - if line == "": + if line.string.len == 0: ev.typ = EvDisconnected else: - ev = parseMessage(line) + ev = parseMessage(line.string) if ev.cmd == MPing: irc.send("PONG " & ev.params[0]) if ev.cmd == MPong: |