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

Comparing ircd-hybrid/trunk/modules/core/m_kick.c (file contents):
Revision 1592 by michael, Sat Oct 27 21:02:32 2012 UTC vs.
Revision 1832 by michael, Fri Apr 19 19:16:09 2013 UTC

# Line 72 | Line 72 | m_kick(struct Client *client_p, struct C
72  
73    if (EmptyString(parv[2]))
74    {
75 <    sendto_one(source_p, form_str(ERR_NEEDMOREPARAMS),
75 >    sendto_one(source_p, ERR_NEEDMOREPARAMS,
76                 from, to, "KICK");
77      return;
78    }
# Line 95 | Line 95 | m_kick(struct Client *client_p, struct C
95  
96    if ((chptr = hash_find_channel(name)) == NULL)
97    {
98 <    sendto_one(source_p, form_str(ERR_NOSUCHCHANNEL),
98 >    sendto_one(source_p, ERR_NOSUCHCHANNEL,
99                 from, to, name);
100      return;
101    }
# Line 106 | Line 106 | m_kick(struct Client *client_p, struct C
106      {
107        if (MyConnect(source_p))
108        {
109 <        sendto_one(source_p, form_str(ERR_NOTONCHANNEL),
109 >        sendto_one(source_p, ERR_NOTONCHANNEL,
110                     me.name, source_p->name, name);
111          return;
112        }
# Line 118 | Line 118 | m_kick(struct Client *client_p, struct C
118        if (MyConnect(source_p))
119        {
120          /* user on _my_ server, with no chanops.. so go away */
121 <        sendto_one(source_p, form_str(ERR_CHANOPRIVSNEEDED),
121 >        sendto_one(source_p, ERR_CHANOPRIVSNEEDED,
122                     me.name, source_p->name, name);
123          return;
124        }
# Line 126 | Line 126 | m_kick(struct Client *client_p, struct C
126        if (chptr->channelts == 0)
127        {
128          /* If its a TS 0 channel, do it the old way */        
129 <        sendto_one(source_p, form_str(ERR_CHANOPRIVSNEEDED),
129 >        sendto_one(source_p, ERR_CHANOPRIVSNEEDED,
130                     from, to, name);
131          return;
132        }
# Line 177 | Line 177 | m_kick(struct Client *client_p, struct C
177        if (((chptr->mode.mode & MODE_PRIVATE) && has_member_flags(ms_target,
178          CHFL_CHANOP|CHFL_HALFOP)) || has_member_flags(ms_target, CHFL_CHANOP))
179        {
180 <        sendto_one(source_p, form_str(ERR_CHANOPRIVSNEEDED),
180 >        sendto_one(source_p, ERR_CHANOPRIVSNEEDED,
181                     me.name, source_p->name, name);
182          return;
183        }
# Line 209 | Line 209 | m_kick(struct Client *client_p, struct C
209      remove_user_from_channel(ms_target);
210    }
211    else
212 <    sendto_one(source_p, form_str(ERR_USERNOTINCHANNEL),
212 >    sendto_one(source_p, ERR_USERNOTINCHANNEL,
213                 from, to, user, name);
214   }
215  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines