ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/modules/m_userhost.c
(Generate patch)

Comparing ircd-hybrid-8/modules/m_userhost.c (file contents):
Revision 1229 by michael, Sun Sep 18 09:02:38 2011 UTC vs.
Revision 1230 by michael, Thu Sep 22 19:41:19 2011 UTC

# Line 37 | Line 37
37   #include "s_conf.h"
38  
39  
40 – static void m_userhost(struct Client *, struct Client *, int, char *[]);
41 –
42 – struct Message userhost_msgtab = {
43 –  "USERHOST", 0, 0, 1, 1, MFLG_SLOW, 0,
44 –  {m_unregistered, m_userhost, m_userhost, m_ignore, m_userhost, m_ignore}
45 – };
46 –
47 – void
48 – _modinit(void)
49 – {
50 –  mod_add_cmd(&userhost_msgtab);
51 – }
52 –
53 – void
54 – _moddeinit(void)
55 – {
56 –  mod_del_cmd(&userhost_msgtab);
57 – }
58 –
59 – const char *_version = "$Revision$";
60 –
40   /*
41   * m_userhost added by Darren Reed 13/8/91 to aid clients and reduce
42   * the need for complicated requests like WHOIS. It returns user/host
# Line 75 | Line 54 | m_userhost(struct Client *client_p, stru
54    int cur_len;
55    int rl;
56  
57 <  cur_len = ircsprintf(buf,form_str(RPL_USERHOST),me.name, parv[0], "");
57 >  cur_len = ircsprintf(buf, form_str(RPL_USERHOST), me.name, source_p->name, "");
58    t = buf + cur_len;
59  
60    for (nick = strtoken(&p, parv[1], " "); nick && i++ < 5;
# Line 121 | Line 100 | m_userhost(struct Client *client_p, stru
100  
101    sendto_one(source_p, "%s", buf);
102   }
103 +
104 + static struct Message userhost_msgtab = {
105 +  "USERHOST", 0, 0, 1, 1, MFLG_SLOW, 0,
106 +  {m_unregistered, m_userhost, m_userhost, m_ignore, m_userhost, m_ignore}
107 + };
108 +
109 + static void
110 + module_init(void)
111 + {
112 +  mod_add_cmd(&userhost_msgtab);
113 + }
114 +
115 + static void
116 + module_exit(void)
117 + {
118 +  mod_del_cmd(&userhost_msgtab);
119 + }
120 +
121 + struct module module_entry = {
122 +  .node    = { NULL, NULL, NULL },
123 +  .name    = NULL,
124 +  .version = "$Revision$",
125 +  .handle  = NULL,
126 +  .modinit = module_init,
127 +  .modexit = module_exit,
128 +  .flags   = 0
129 + };

Diff Legend

– Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)