--- projects/cms/source/util/uk/org/iscream/cms/util/Smtp.java 2001/02/05 20:46:28 1.3 +++ projects/cms/source/util/uk/org/iscream/cms/util/Smtp.java 2001/02/05 22:21:38 1.4 @@ -10,7 +10,7 @@ import java.io.*; * for the GJT, and scaled to do just what we require. * * @author $Author: tdb $ - * @version $Id: Smtp.java,v 1.3 2001/02/05 20:46:28 tdb Exp $ + * @version $Id: Smtp.java,v 1.4 2001/02/05 22:21:38 tdb Exp $ */ public class Smtp { @@ -19,7 +19,7 @@ public class Smtp { /** * The current CVS revision of this class */ - public static final String REVISION = "$Revision: 1.3 $"; + public static final String REVISION = "$Revision: 1.4 $"; //---STATIC METHODS--- @@ -116,7 +116,7 @@ public class Smtp { public void sendCommand(String cmd, int reply) throws IOException { _socketOut.println(cmd); String temp = _socketIn.readLine(); - if (!temp.startsWith(new String(reply))) { + if (!temp.startsWith(new Integer(reply).toString())) { throw new IOException ("Expected " + reply + ", got " + temp); } }