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

Comparing ircd-hybrid/trunk/modules/m_module.c (file contents):
Revision 1832 by michael, Fri Apr 19 19:16:09 2013 UTC vs.
Revision 1834 by michael, Fri Apr 19 19:50:27 2013 UTC

# Line 64 | Line 64 | mo_module(struct Client *client_p, struc
64  
65    if (!HasOFlag(source_p, OPER_FLAG_MODULE))
66    {
67 <    sendto_one(source_p, ERR_NOPRIVILEGES,
67 >    sendto_one(source_p, form_str(ERR_NOPRIVILEGES),
68                 me.name, source_p->name);
69      return;
70    }
71  
72    if (EmptyString(parv[1]))
73    {
74 <    sendto_one(source_p, ERR_NEEDMOREPARAMS,
74 >    sendto_one(source_p, form_str(ERR_NEEDMOREPARAMS),
75                 me.name, source_p->name, "MODULE");
76      return;
77    }
# Line 80 | Line 80 | mo_module(struct Client *client_p, struc
80    {
81      if (EmptyString(parv[2]))
82      {
83 <      sendto_one(source_p, ERR_NEEDMOREPARAMS,
83 >      sendto_one(source_p, form_str(ERR_NEEDMOREPARAMS),
84                   me.name, source_p->name, "MODULE");
85        return;
86      }
# Line 100 | Line 100 | mo_module(struct Client *client_p, struc
100    {
101      if (EmptyString(parv[2]))
102      {
103 <      sendto_one(source_p, ERR_NEEDMOREPARAMS,
103 >      sendto_one(source_p, form_str(ERR_NEEDMOREPARAMS),
104                   me.name, source_p->name, "MODULE");
105        return;
106      }
# Line 138 | Line 138 | mo_module(struct Client *client_p, struc
138    {
139      if (EmptyString(parv[2]))
140      {
141 <      sendto_one(source_p, ERR_NEEDMOREPARAMS,
141 >      sendto_one(source_p, form_str(ERR_NEEDMOREPARAMS),
142                   me.name, source_p->name, "MODULE");
143        return;
144      }
# Line 220 | Line 220 | mo_module(struct Client *client_p, struc
220        if (!EmptyString(parv[2]) && match(parv[2], modp->name))
221          continue;
222  
223 <      sendto_one(source_p, RPL_MODLIST, me.name, source_p->name,
223 >      sendto_one(source_p, form_str(RPL_MODLIST), me.name, source_p->name,
224                   modp->name, modp->handle,
225                   modp->version, (modp->flags & MODULE_FLAG_CORE) ?"(core)":"");
226      }
227  
228 <    sendto_one(source_p, RPL_ENDOFMODLIST,
228 >    sendto_one(source_p, form_str(RPL_ENDOFMODLIST),
229                 me.name, source_p->name);
230      return;
231    }

Diff Legend

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