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 |
|
} |
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 |
|
} |
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 |
|
} |
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 |
|
} |
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 |
|
} |
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 |
|
} |
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 |
|
|