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

Comparing ircd-hybrid/trunk/src/conf_parser.y (file contents):
Revision 9756 by michael, Sun Nov 29 21:41:03 2020 UTC vs.
Revision 9775 by michael, Thu Dec 3 15:50:23 2020 UTC

# Line 143 | Line 143 | reset_block_state(void)
143   %token  AUTOCONN
144   %token  AWAY_COUNT
145   %token  AWAY_TIME
146 + %token  BOT
147   %token  BYTES KBYTES MBYTES
148   %token  CALLER_ID_WAIT
149   %token  CAN_FLOOD
# Line 1035 | Line 1036 | oper_umodes: T_UMODES
1036   } '=' oper_umodes_items ';' ;
1037  
1038   oper_umodes_items: oper_umodes_items ',' oper_umodes_item | oper_umodes_item;
1039 < oper_umodes_item:  T_CCONN
1039 > oper_umodes_item: BOT
1040 > {
1041 >  if (conf_parser_ctx.pass == 2)
1042 >    block_state.modes.value |= UMODE_BOT;
1043 > } | T_CCONN
1044   {
1045    if (conf_parser_ctx.pass == 2)
1046      block_state.modes.value |= UMODE_CCONN;
# Line 2580 | Line 2585 | general_oper_umodes: OPER_UMODES
2585   } '=' umode_oitems ';' ;
2586  
2587   umode_oitems:    umode_oitems ',' umode_oitem | umode_oitem;
2588 < umode_oitem: T_CCONN
2588 > umode_oitem: BOT
2589 > {
2590 >  ConfigGeneral.oper_umodes |= UMODE_BOT;
2591 > } | T_CCONN
2592   {
2593    ConfigGeneral.oper_umodes |= UMODE_CCONN;
2594   } | T_DEAF
# Line 2651 | Line 2659 | general_oper_only_umodes: OPER_ONLY_UMOD
2659   } '=' umode_items ';' ;
2660  
2661   umode_items:  umode_items ',' umode_item | umode_item;
2662 < umode_item: T_CCONN
2662 > umode_item: BOT
2663 > {
2664 >  ConfigGeneral.oper_only_umodes |= UMODE_BOT;
2665 > } | T_CCONN
2666   {
2667    ConfigGeneral.oper_only_umodes |= UMODE_CCONN;
2668   } | T_DEAF

Diff Legend

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