# -*- coding: iso-8859-15 -*-
import urllib
import string
import sys
import xchat
__module_name__ = "Bashfr Module"
__module_version__ = "1.0"
__module_description__ = "Get the requested quote"
__module_author__ = "0x586e"
class BashFR:
def __init__(self,QuoteID):
self.MyPage = 'http://www.bashfr.org/index.php?'
self.MyQuote = ''
self.MySource = urllib.urlopen(self.MyPage+str(QuoteID))
self.MySource = self.MySource.read()
self.IsQuote = False
self.MyMapping = {' ':' ','<':'<','>':'>','&':'&','"':'"',''':"'",'à':'à','é':'é','è':'è',
''':"'",'
':'','ç':'ç','§':'§','ê':'ê','°':'°'
}
MyLookupString = '" class="com">
'
MySecondLookup = '