OSSP CVS Repository

ossp - Difference in ossp-pkg/l2/l2_ch_irc.c versions 1.7 and 1.8
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/l2/l2_ch_irc.c 1.7 -> 1.8

--- l2_ch_irc.c  2002/07/30 19:08:24     1.7
+++ l2_ch_irc.c  2003/01/06 11:41:51     1.8
@@ -1,9 +1,10 @@
 /*
-**  OSSP l2 - Logging Library
-**  Copyright (c) 2001-2002 The OSSP Project (http://www.ossp.org/)
-**  Copyright (c) 2001-2002 Cable & Wireless Deutschland (http://www.cw.com/de/)
+**  OSSP l2 - Flexible Logging
+**  Copyright (c) 2001-2003 Cable & Wireless Deutschland GmbH
+**  Copyright (c) 2001-2003 The OSSP Project (http://www.ossp.org/)
+**  Copyright (c) 2001-2003 Ralf S. Engelschall <rse@engelschall.com>
 **
-**  This file is part of OSSP L2, a flexible logging library which
+**  This file is part of OSSP l2, a flexible logging library which
 **  can be found at http://www.ossp.org/pkg/lib/l2/.
 **
 **  Permission to use, copy, modify, and distribute this software for
@@ -49,7 +50,7 @@
     int   bJoin;
     char *cpHost;
     char *cpPort;
-    long nTimeout; 
+    long nTimeout;
     sa_addr_t *saaServer;
     sa_t *saServer;
 } l2_ch_irc_t;
@@ -97,7 +98,7 @@
 static l2_result_t hook_configure(l2_context_t *ctx, l2_channel_t *ch, const char *fmt, va_list ap)
 {
     l2_ch_irc_t *cfg = (l2_ch_irc_t *)ctx->vp;
-    l2_param_t pa[12]; 
+    l2_param_t pa[12];
     l2_result_t rv;
     l2_env_t *env;
 
@@ -133,7 +134,7 @@
     /* create socket address */
     if ((rc = sa_addr_create(&cfg->saaServer)) != SA_OK)
         return (rc == SA_ERR_SYS ? L2_ERR_SYS : L2_ERR_INT);
-    if ((rc = sa_addr_u2a(cfg->saaServer, "inet://%s:%s", 
+    if ((rc = sa_addr_u2a(cfg->saaServer, "inet://%s:%s",
                           cfg->cpHost, cfg->cpPort)) != SA_OK)
         return (rc == SA_ERR_SYS ? L2_ERR_SYS : L2_ERR_INT);
 
@@ -163,8 +164,8 @@
     struct tm *tm;
     time_t t;
     char caDate[80];
-    
-    /* 
+
+    /*
      * Sample IRC client transaction for reference:
      * | PASS secret
      * | NICK rse
@@ -176,17 +177,17 @@
      * | :irc.engelschall.com 251 rse :There are 1 users and 0 services on 1 servers
      * | :irc.engelschall.com 254 rse 11 :channels formed
      * | :irc.engelschall.com 255 rse :I have 1 users, 0 services and 0 servers
-     * | :irc.engelschall.com 375 rse :- irc.engelschall.com Message of the Day - 
+     * | :irc.engelschall.com 375 rse :- irc.engelschall.com Message of the Day -
      * | :irc.engelschall.com 372 rse :- 17/10/2001 19:32
      * | :irc.engelschall.com 372 rse :- Welcome to the Engelschall VISP IRC Service.
      * | :irc.engelschall.com 376 rse :End of MOTD command.
      * | :rse MODE rse :+i
      * | JOIN #dev
      * | :rse!~rse@dev10.dev.de.cw.net JOIN :#dev
-     * | :irc.engelschall.com 353 rse = #dev :@rse 
+     * | :irc.engelschall.com 353 rse = #dev :@rse
      * | :irc.engelschall.com 366 rse #dev :End of NAMES list.
      * | PRIVMSG #dev :Sample log message line 1
-     * | PRIVMSG #dev :Sample log message line 2 
+     * | PRIVMSG #dev :Sample log message line 2
      * | PRIVMSG #dev :Sample log message line 3
      * | QUIT
      * | ERROR :Closing Link: rse[~rse@dev10.dev.de.cw.net] (I Quit)
@@ -214,10 +215,10 @@
         sa_writef(sa, "JOIN %s\r\n", cfg->cpChannel);
     sa_writef(sa, "PRIVMSG %s :", cfg->cpChannel);
     if (cfg->cpLocalProg != NULL)
-        sa_writef(sa, "Program %s of user %s on host %s logged at %s:\r\n", 
+        sa_writef(sa, "Program %s of user %s on host %s logged at %s:\r\n",
                    cfg->cpLocalProg, cfg->cpLocalUser, cfg->cpLocalHost, caDate);
     else
-        sa_writef(sa, "A program of user %s on host %s logged at %s:\r\n", 
+        sa_writef(sa, "A program of user %s on host %s logged at %s:\r\n",
                    cfg->cpLocalUser, cfg->cpLocalHost, caDate);
     sa_writef(sa, "PRIVMSG %s :", cfg->cpChannel);
     sa_write(sa, buf, buf_size-1, NULL);

CVSTrac 2.0.1