Re: [dev] [sic] port argument necessary?

From: Josh Rickmar <joshua_rickmar_AT_eumx.net>
Date: Tue, 17 Aug 2010 17:32:55 -0400

On Wed, Aug 18, 2010 at 07:18:48AM +1000, Ramana Kumar wrote:
> Why must an argument be provided with its default value?
>
> ramana_AT_archbox ~ % sic
> error: cannot resolve hostname 'irc.oftc.net': Success
> ramana_AT_archbox ~ % sic -p 6667
> solenoid.oftc.net: 08/18/10 07:17 >< NOTICE (AUTH): *** Looking up
> your hostname...
> solenoid.oftc.net: 08/18/10 07:17 >< NOTICE (AUTH): *** Checking Ident
> solenoid.oftc.net: 08/18/10 07:17 >< NOTICE (AUTH): *** Found your hostname
>

Man page says it should be 6667 by default, source says otherwise.
Here's a fix:

diff -r 904b7747c223 sic.c
--- a/sic.c Fri Aug 06 09:52:12 2010 +0100
+++ b/sic.c Tue Aug 17 17:31:53 2010 -0400
@@ -9,7 +9,7 @@
 #include <unistd.h>
 
 static char *host = "irc.oftc.net";
-static char *port = "ircd";
+static char *port = "6667";
 static char *password;
 static char nick[32];
 static char bufin[4096];
Received on Tue Aug 17 2010 - 23:32:55 CEST

This archive was generated by hypermail 2.2.0 : Tue Aug 17 2010 - 23:36:02 CEST