/[weechat]/weechat/src/irc/irc-send.c
ViewVC logotype

Diff of /weechat/src/irc/irc-send.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by flashcode, Sat Oct 11 00:25:48 2003 UTC revision 1.5 by flashcode, Sun Oct 12 17:03:38 2003 UTC
# Line 28  Line 28 
28  #include <unistd.h>  #include <unistd.h>
29  #include <stdio.h>  #include <stdio.h>
30  #include <string.h>  #include <string.h>
31    #include <sys/time.h>
32  #include <time.h>  #include <time.h>
33  #include <sys/utsname.h>  #include <sys/utsname.h>
34    
# Line 126  int Line 127  int
127  irc_cmd_send_ctcp (t_irc_server *server, char *arguments)  irc_cmd_send_ctcp (t_irc_server *server, char *arguments)
128  {  {
129      char *pos, *pos2;      char *pos, *pos2;
130        struct timeval tv;
131        struct timezone tz;
132            
133      pos = strchr (arguments, ' ');      pos = strchr (arguments, ' ');
134      if (pos)      if (pos)
# Line 163  irc_cmd_send_ctcp (t_irc_server *server, Line 166  irc_cmd_send_ctcp (t_irc_server *server,
166                  server_sendf (server, "PRIVMSG %s :\01ACTION\01\r\n",                  server_sendf (server, "PRIVMSG %s :\01ACTION\01\r\n",
167                                arguments);                                arguments);
168          }          }
169            if (strcasecmp (pos, "ping") == 0)
170            {
171                gettimeofday (&tv, &tz);
172                server_sendf (server, "PRIVMSG %s :\01PING %d %d\01\r\n",
173                              arguments, tv.tv_sec, tv.tv_usec);
174            }
175                    
176      }      }
177      return 0;      return 0;

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26