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

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

# Line 56 | Line 56 | m_mode(struct Client *client_p, struct C
56  
57    if (EmptyString(parv[1]))
58    {
59 <    sendto_one(source_p, ERR_NEEDMOREPARAMS,
59 >    sendto_one(source_p, form_str(ERR_NEEDMOREPARAMS),
60                 me.name, source_p->name, "MODE");
61      return;
62    }
# Line 71 | Line 71 | m_mode(struct Client *client_p, struct C
71  
72    if ((chptr = hash_find_channel(parv[1])) == NULL)
73    {
74 <    sendto_one(source_p, ERR_NOSUCHCHANNEL,
74 >    sendto_one(source_p, form_str(ERR_NOSUCHCHANNEL),
75                 ID_or_name(&me, source_p->from),
76                 ID_or_name(source_p, source_p->from),
77                 parv[1]);
# Line 82 | Line 82 | m_mode(struct Client *client_p, struct C
82    if (parc < 3)
83    {
84      channel_modes(chptr, source_p, modebuf, parabuf);
85 <    sendto_one(source_p, RPL_CHANNELMODEIS,
85 >    sendto_one(source_p, form_str(RPL_CHANNELMODEIS),
86                 me.name, source_p->name, chptr->chname, modebuf, parabuf);
87 <    sendto_one(source_p, RPL_CREATIONTIME,
87 >    sendto_one(source_p, form_str(RPL_CREATIONTIME),
88                 me.name, source_p->name, chptr->chname, chptr->channelts);
89    }
90    /* bounce all modes from people we deop on sjoin
# Line 133 | Line 133 | ms_tmode(struct Client *client_p, struct
133  
134    if ((chptr = hash_find_channel(parv[2])) == NULL)
135    {
136 <    sendto_one(source_p, ERR_NOSUCHCHANNEL,
136 >    sendto_one(source_p, form_str(ERR_NOSUCHCHANNEL),
137                 ID_or_name(&me, client_p), ID_or_name(source_p, client_p), parv[2]);
138      return;
139    }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines