2
2
3
3
import sys
4
4
import re
5
- import html
5
+
6
+ def escape (inp ):
7
+ return inp
6
8
7
9
offset = int (sys .argv [2 ])
8
10
530
532
"ui_toolbox_page" : 513 ,
531
533
"ui_unread_news" : 514 ,
532
534
# add new settings below here with increasing numbers
535
+ "sv_emoticon_ms_delay" : 515 ,
536
+ "sv_global_emoticon_ms_delay" : 516 ,
533
537
}
534
538
535
539
names = {}
536
540
results = []
537
541
538
542
def getValue (x ):
539
- return html . escape (x .lstrip ()).replace ("SERVERINFO_LEVEL_MIN" , "0" ).replace ("SERVERINFO_LEVEL_MAX" , "2" ).replace ("MAX_CLIENTS" , "64" )
543
+ return escape (x .lstrip ()).replace ("SERVERINFO_LEVEL_MIN" , "0" ).replace ("SERVERINFO_LEVEL_MAX" , "2" ).replace ("MAX_CLIENTS" , "64" )
540
544
541
545
for line in sys .stdin :
542
546
if sys .argv [1 ] not in line :
@@ -548,11 +552,11 @@ def getValue(x):
548
552
idx = offset + 100 + settings [name ] * 5
549
553
550
554
if "MACRO_CONFIG_STR" in line :
551
- result = (html . escape (name ), idx , html . escape (y [- 2 ]), getValue (x [3 ].lstrip ()), "" , "" )
555
+ result = (escape (name ), idx , escape (y [- 2 ]), getValue (x [3 ].lstrip ()), "" , "" )
552
556
elif "MACRO_CONFIG_INT" in line :
553
- result = (html . escape (name ), idx , html . escape (y [- 2 ]), getValue (x [2 ].lstrip ()), getValue (x [3 ]), getValue (x [4 ]))
557
+ result = (escape (name ), idx , escape (y [- 2 ]), getValue (x [2 ].lstrip ()), getValue (x [3 ]), getValue (x [4 ]))
554
558
elif "MACRO_CONFIG_COL" in line :
555
- result = (html . escape (name ), idx , html . escape (y [- 2 ]), getValue (x [2 ].lstrip ()), "" , "" )
559
+ result = (escape (name ), idx , escape (y [- 2 ]), getValue (x [2 ].lstrip ()), "" , "" )
556
560
557
561
line = "|-\n "
558
562
if y [- 2 ].strip () == "" :
0 commit comments