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

Comparing ircd-hybrid-8/contrib/m_change.c (file contents):
Revision 1574 by michael, Sun Jul 22 14:44:07 2012 UTC vs.
Revision 1575 by michael, Thu Oct 18 14:27:36 2012 UTC

# Line 38 | Line 38
38   #include "s_user.h"
39   #include "hash.h"
40   #include "userhost.h"
41 + #include "channel_mode.h"
42  
43  
44   static void
# Line 96 | Line 97 | mo_chgident(struct Client *client_p, str
97                 target_p->host);
98    }
99  
100 <  if (MyConnect(target_p) && IsClient(source_p))
101 <    sendto_one(target_p, ":%s NOTICE %s :You are now %s@%s",
102 <               me.name, target_p->name, target_p->username, target_p->host);
100 >  if (MyClient(target_p))
101 >  {
102 >    if (IsClient(source_p))
103 >      sendto_one(target_p, ":%s NOTICE %s :You are now %s@%s",
104 >                 me.name, target_p->name, target_p->username, target_p->host);
105 >
106 >    clear_ban_cache_client(target_p);
107 >  }
108   }
109  
110   static void
# Line 158 | Line 164 | mo_chghost(struct Client *client_p, stru
164                 target_p->host);
165    }
166  
167 <  if (MyConnect(target_p) && IsClient(source_p))
168 <    sendto_one(target_p, ":%s NOTICE %s :You are now %s@%s",
169 <               me.name, target_p->name, target_p->username, target_p->host);
167 >  if (MyClient(target_p))
168 >  {
169 >    if (IsClient(source_p))
170 >      sendto_one(target_p, ":%s NOTICE %s :You are now %s@%s",
171 >                 me.name, target_p->name, target_p->username, target_p->host);
172 >    clear_ban_cache_client(target_p);
173 >  }
174   }
175  
176   static void

Diff Legend

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