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 3192 by michael, Sun Mar 23 19:46:39 2014 UTC vs.
Revision 3196 by michael, Sun Mar 23 20:25:35 2014 UTC

# Line 49 | Line 49
49   static int
50   m_kick(struct Client *source_p, int parc, char *parv[])
51   {
52 <  struct Client *who;
52 >  struct Client *target_p = NULL;
53    struct Channel *chptr;
54    char *comment;
55    char *name;
# Line 141 | Line 141 | m_kick(struct Client *source_p, int parc
141    if (*user == '\0')
142      return 0;
143  
144 <  if ((who = find_chasing(source_p, user)) == NULL)
144 >  if ((target_p = find_chasing(source_p, user)) == NULL)
145      return 0;
146  
147 <  if ((ms_target = find_channel_link(who, chptr)) != NULL)
147 >  if ((ms_target = find_channel_link(target_p, chptr)) != NULL)
148    {
149   #ifdef HALFOPS
150      /* half ops cannot kick other halfops on private channels */
# Line 168 | Line 168 | m_kick(struct Client *source_p, int parc
168       */
169      if (IsServer(source_p))
170        sendto_channel_local(ALL_MEMBERS, 0, chptr, ":%s KICK %s %s :%s",
171 <                           source_p->name, name, who->name, comment);
171 >                           source_p->name, name, target_p->name, comment);
172      else
173        sendto_channel_local(ALL_MEMBERS, 0, chptr, ":%s!%s@%s KICK %s %s :%s",
174                             source_p->name, source_p->username,
175 <                           source_p->host, name, who->name, comment);
175 >                           source_p->host, name, target_p->name, comment);
176  
177      sendto_server(source_p, NOCAPS, NOCAPS, ":%s KICK %s %s :%s",
178 <                  source_p->id, chptr->chname, who->id, comment);
178 >                  source_p->id, chptr->chname, target_p->id, comment);
179      remove_user_from_channel(ms_target);
180    }
181    else

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines