From 8491d2db4401fa4bb0665ac1c9b9587080fba8d4 Mon Sep 17 00:00:00 2001 From: Ward Wouts Date: Tue, 6 Dec 2005 21:43:58 +0000 Subject: [PATCH] betere check --- trunk/ripnews/net/nntp.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trunk/ripnews/net/nntp.rb b/trunk/ripnews/net/nntp.rb index e80d20a..7590d76 100644 --- a/trunk/ripnews/net/nntp.rb +++ b/trunk/ripnews/net/nntp.rb @@ -104,7 +104,7 @@ class NNTP puts "*getresp* #{resp}" if @debuglevel > 0 c = resp[0] case c - when c == nil then raise NNTPProtocolError, resp, caller + when c.nil? then raise NNTPProtocolError, resp, caller when c == '4' then raise NNTPTemporaryError, resp, caller when c == '5' then raise NNTPPermanentError, resp, caller when '123'.include?(c) then raise NNTPProtocolError, resp, caller