/[svn]/ircd-hybrid-8/modules/m_svsmode.c
ViewVC logotype

Diff of /ircd-hybrid-8/modules/m_svsmode.c

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

revision 1162 by michael, Wed Aug 10 21:16:43 2011 UTC revision 1163 by michael, Wed Aug 10 21:54:01 2011 UTC
# Line 121  ms_svsmode(struct Client *client_p, stru Line 121  ms_svsmode(struct Client *client_p, stru
121        case '-':        case '-':
122          what = MODE_DEL;          what = MODE_DEL;
123          break;          break;
124    
125          case 'd':
126            if (extarg && IsDigit(*extarg))
127              target_p->servicestamp = strtoul(extarg, NULL, 0);
128            break;
129    
130        case 'o':        case 'o':
131          if (what == MODE_DEL && IsOper(target_p))          if (what == MODE_DEL && IsOper(target_p))
132          {          {
# Line 142  ms_svsmode(struct Client *client_p, stru Line 148  ms_svsmode(struct Client *client_p, stru
148    
149          break;          break;
150    
151          case 'i':
152            if (what == MODE_ADD && !HasUMode(target_p, UMODE_INVISIBLE))
153            {
154              AddUMode(target_p, UMODE_INVISIBLE);
155              ++Count.invisi;
156            }
157    
158            if (what == MODE_DEL && HasUMode(target_p, UMODE_INVISIBLE))
159            {
160              DelUMode(target_p, UMODE_INVISIBLE);
161              --Count.invisi;
162            }
163    
164            break;
165    
166        case ' ':        case ' ':
167        case '\n':        case '\n':
168        case '\r':        case '\r':
169        case '\t':        case '\t':
170          break;          break;
       case 'd':  
         if (extarg && IsDigit(*extarg))  
           target_p->servicestamp = strtoul(extarg, NULL, 0);  
         break;  
171        default:        default:
172          if ((flag = user_modes[(unsigned char)*m]))          if ((flag = user_modes[(unsigned char)*m]))
173            execute_callback(umode_cb, client_p, target_p, what, flag);            execute_callback(umode_cb, client_p, target_p, what, flag);

Legend:
Removed from v.1162  
changed lines
  Added in v.1163

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