ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/branches/newio/modules/m_pong.c
(Generate patch)

Comparing branches/newio/modules/m_pong.c (file contents):
Revision 2416 by michael, Sat Jul 6 16:22:05 2013 UTC vs.
Revision 2417 by michael, Sun Jul 21 18:11:50 2013 UTC

# Line 35 | Line 35
35   #include "modules.h"
36  
37  
38 < static void
38 > static int
39   ms_pong(struct Client *client_p, struct Client *source_p,
40          int parc, char *parv[])
41   {
# Line 46 | Line 46 | ms_pong(struct Client *client_p, struct
46    {
47      sendto_one(source_p, form_str(ERR_NOORIGIN),
48                 me.name, source_p->name);
49 <    return;
49 >    return 0;
50    }
51  
52    origin = parv[1];
# Line 69 | Line 69 | ms_pong(struct Client *client_p, struct
69      {
70        sendto_one(source_p, form_str(ERR_NOSUCHSERVER),
71                   me.name, source_p->name, destination);
72 <      return;
72 >      return 0;
73      }
74    }
75 +
76 +  return 0;
77   }
78  
79 < static void
79 > static int
80   mr_pong(struct Client *client_p, struct Client *source_p,
81          int parc, char *parv[])
82   {
# Line 97 | Line 99 | mr_pong(struct Client *client_p, struct
99          {
100            sendto_one(source_p, form_str(ERR_WRONGPONG), me.name,
101                       source_p->name, source_p->localClient->random_ping);
102 <          return;
102 >          return 0;
103          }
104        }
105      }
# Line 105 | Line 107 | mr_pong(struct Client *client_p, struct
107    else
108      sendto_one(source_p, form_str(ERR_NOORIGIN),
109                 me.name, source_p->name);
110 +  return 0;
111   }
112  
113 < static struct Message pong_msgtab = {
113 > static struct Message pong_msgtab =
114 > {
115    "PONG", 0, 0, 1, MAXPARA, MFLG_SLOW, 0,
116    {mr_pong, m_ignore, ms_pong, m_ignore, m_ignore, m_ignore}
117   };
# Line 124 | Line 128 | module_exit(void)
128    mod_del_cmd(&pong_msgtab);
129   }
130  
131 < struct module module_entry = {
131 > struct module module_entry =
132 > {
133    .node    = { NULL, NULL, NULL },
134    .name    = NULL,
135    .version = "$Revision$",

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines