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

Comparing ircd-hybrid-8/src/s_conf.c (file contents):
Revision 1285 by michael, Sun Feb 5 15:12:59 2012 UTC vs.
Revision 1294 by michael, Wed Feb 22 20:48:30 2012 UTC

# Line 2369 | Line 2369 | expire_tklines(dlink_list *tklist)
2369   static const struct oper_privs
2370   {
2371    const unsigned int oprivs;
2372  const unsigned int hidden;
2372    const unsigned char c;
2373   } flag_list[] = {
2374 <  { OPER_FLAG_ADMIN,       OPER_FLAG_HIDDEN_ADMIN,  'A' },
2375 <  { OPER_FLAG_REMOTEBAN,   0,                       'B' },
2376 <  { OPER_FLAG_DIE,         0,                       'D' },
2377 <  { OPER_FLAG_GLINE,       0,                       'G' },
2378 <  { OPER_FLAG_REHASH,      0,                       'H' },
2379 <  { OPER_FLAG_K,           0,                       'K' },
2380 <  { OPER_FLAG_OPERWALL,    0,                       'L' },
2381 <  { OPER_FLAG_N,           0,                       'N' },
2382 <  { OPER_FLAG_GLOBAL_KILL, 0,                       'O' },
2383 <  { OPER_FLAG_REMOTE,      0,                       'R' },
2384 <  { OPER_FLAG_OPER_SPY,    0,                       'S' },
2385 <  { OPER_FLAG_UNKLINE,     0,                       'U' },
2386 <  { OPER_FLAG_X,           0,                       'X' },
2387 <  { 0, 0, '\0' }
2374 >  { OPER_FLAG_ADMIN,       'A' },
2375 >  { OPER_FLAG_REMOTEBAN,   'B' },
2376 >  { OPER_FLAG_DIE,         'D' },
2377 >  { OPER_FLAG_GLINE,       'G' },
2378 >  { OPER_FLAG_REHASH,      'H' },
2379 >  { OPER_FLAG_K,           'K' },
2380 >  { OPER_FLAG_OPERWALL,    'L' },
2381 >  { OPER_FLAG_N,           'N' },
2382 >  { OPER_FLAG_GLOBAL_KILL, 'O' },
2383 >  { OPER_FLAG_REMOTE,      'R' },
2384 >  { OPER_FLAG_OPER_SPY,    'S' },
2385 >  { OPER_FLAG_UNKLINE,     'U' },
2386 >  { OPER_FLAG_X,           'X' },
2387 >  { 0, '\0' }
2388   };
2389  
2390   char *
# Line 2397 | Line 2396 | oper_privs_as_string(const unsigned int
2396  
2397    for (; flag_list[i].oprivs; ++i)
2398    {
2399 <    if ((port & flag_list[i].oprivs) &&
2401 <        (port & flag_list[i].hidden) == 0)
2399 >    if (port & flag_list[i].oprivs)
2400        *privs_ptr++ = flag_list[i].c;
2401      else
2402        *privs_ptr++ = ToLowerTab[flag_list[i].c];

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines