mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-26 20:59:27 +01:00
Made gameknot.com URL snarfer bold the names.
This commit is contained in:
parent
ced5e6b052
commit
c86363db46
@ -7,6 +7,7 @@ import urllib2
|
|||||||
|
|
||||||
import ircmsgs
|
import ircmsgs
|
||||||
import ircutils
|
import ircutils
|
||||||
|
import ircutils
|
||||||
import callbacks
|
import callbacks
|
||||||
|
|
||||||
htmlStripper = re.compile(r'<[^>]+>')
|
htmlStripper = re.compile(r'<[^>]+>')
|
||||||
@ -39,6 +40,8 @@ class Forums(callbacks.PrivmsgRegexp):
|
|||||||
s = fd.read()
|
s = fd.read()
|
||||||
try:
|
try:
|
||||||
((wRating, wName), (bRating, bName)) = self.gkPlayer.findall(s)
|
((wRating, wName), (bRating, bName)) = self.gkPlayer.findall(s)
|
||||||
|
wName = ircutils.bold(wName)
|
||||||
|
bName = ircutils.bold(bName)
|
||||||
wRating = wRating.replace('<br>', ' ')
|
wRating = wRating.replace('<br>', ' ')
|
||||||
bRating = bRating.replace('<br>', ' ')
|
bRating = bRating.replace('<br>', ' ')
|
||||||
wRating = wRating.replace('Wins', '; Wins')
|
wRating = wRating.replace('Wins', '; Wins')
|
||||||
|
Loading…
Reference in New Issue
Block a user