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 1832 by michael, Fri Apr 19 19:16:09 2013 UTC vs.
Revision 1834 by michael, Fri Apr 19 19:50:27 2013 UTC

# Line 221 | Line 221 | reset_block_state(void)
221   %token  MAX_TARGETS
222   %token  MAX_TOPIC_LENGTH
223   %token  MAX_WATCH
224 + %token  MESSAGE_LOCALE
225   %token  MIN_NONWILDCARD
226   %token  MIN_NONWILDCARD_SIMPLE
227   %token  MIN_IDLE
# Line 2411 | Line 2412 | general_item:       general_hide_spoof_i
2412                      general_pace_wait_simple | general_stats_P_oper_only |
2413                      general_short_motd | general_no_oper_flood |
2414                      general_true_no_oper_flood | general_oper_pass_resv |
2415 +                    general_message_locale |
2416                      general_oper_only_umodes | general_max_targets |
2417                      general_use_egd | general_egdpool_path |
2418                      general_oper_umodes | general_caller_id_wait |
# Line 2620 | Line 2622 | general_oper_pass_resv: OPER_PASS_RESV '
2622    ConfigFileEntry.oper_pass_resv = yylval.number;
2623   };
2624  
2625 + general_message_locale: MESSAGE_LOCALE '=' QSTRING ';'
2626 + {
2627 +  if (conf_parser_ctx.pass == 2)
2628 +  {
2629 +    if (strlen(yylval.string) > LOCALE_LENGTH-2)
2630 +      yylval.string[LOCALE_LENGTH-1] = '\0';
2631 +
2632 +    set_locale(yylval.string);
2633 +  }
2634 + };
2635 +
2636   general_dots_in_ident: DOTS_IN_IDENT '=' NUMBER ';'
2637   {
2638    ConfigFileEntry.dots_in_ident = $3;

Diff Legend

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