/[svn]/ircd-hybrid/trunk/modules/core/m_mode.c
ViewVC logotype

Diff of /ircd-hybrid/trunk/modules/core/m_mode.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3149 by michael, Tue Mar 11 18:24:03 2014 UTC revision 3150 by michael, Fri Mar 14 14:11:34 2014 UTC
# Line 91  m_mode(struct Client *client_p, struct C Line 91  m_mode(struct Client *client_p, struct C
91     * including telnet servers *g* - Dianora     * including telnet servers *g* - Dianora
92     */     */
93    if (IsServer(source_p) || HasFlag(source_p, FLAGS_SERVICE))    if (IsServer(source_p) || HasFlag(source_p, FLAGS_SERVICE))
94      set_channel_mode(client_p, source_p, chptr, NULL, parc - 2, parv + 2);      set_channel_mode(source_p, chptr, NULL, parc - 2, parv + 2);
95    else    else
96    {    {
97      member = find_channel_link(source_p, chptr);      member = find_channel_link(source_p, chptr);
# Line 103  m_mode(struct Client *client_p, struct C Line 103  m_mode(struct Client *client_p, struct C
103          if (!((parc == 3) && (parv[2][0] == 'b') && (parv[2][1] == '\0')))          if (!((parc == 3) && (parv[2][0] == 'b') && (parv[2][1] == '\0')))
104            flood_endgrace(source_p);            flood_endgrace(source_p);
105    
106        set_channel_mode(client_p, source_p, chptr, member, parc - 2, parv + 2);        set_channel_mode(source_p, chptr, member, parc - 2, parv + 2);
107      }      }
108    }    }
109    
# Line 134  ms_tmode(struct Client *client_p, struct Line 134  ms_tmode(struct Client *client_p, struct
134      return 0;      return 0;
135    
136    if (IsServer(source_p) || HasFlag(source_p, FLAGS_SERVICE))    if (IsServer(source_p) || HasFlag(source_p, FLAGS_SERVICE))
137      set_channel_mode(client_p, source_p, chptr, NULL, parc - 3, parv + 3);      set_channel_mode(source_p, chptr, NULL, parc - 3, parv + 3);
138    else    else
139    {    {
140      member = find_channel_link(source_p, chptr);      member = find_channel_link(source_p, chptr);
# Line 143  ms_tmode(struct Client *client_p, struct Line 143  ms_tmode(struct Client *client_p, struct
143      if (has_member_flags(member, CHFL_DEOPPED))      if (has_member_flags(member, CHFL_DEOPPED))
144        return 0;        return 0;
145    
146      set_channel_mode(client_p, source_p, chptr, member, parc - 3, parv + 3);      set_channel_mode(source_p, chptr, member, parc - 3, parv + 3);
147    }    }
148    
149    return 0;    return 0;

Legend:
Removed from v.3149  
changed lines
  Added in v.3150

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28