|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
openlogfile(fname,
mode="a+")
open log file |
source code
|
|
|
|
|
|
|
|
|
|
cchar(bot,
ievent)
return control char of bot/ievent's channel |
source code
|
|
|
|
splittxt(what,
l=375)
split text into <l> char portions |
source code
|
|
|
|
lockdec(lock)
return locking descriptor locking on the provided lock |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
reboot_stateful(bot,
ievent,
fleet,
partyline)
reboot the bot, but keep the connections |
source code
|
|
|
|
calledfrom(frame)
return plugin from which function is called |
source code
|
|
|
|
callstack(frame)
return plugin from which function is called |
source code
|
|
|
|
whichmodule()
return plugin from which function is called |
source code
|
|
|
|
stripident(userhost)
strip ident char from userhost |
source code
|
|
|
|
stripidents(ulist)
strip ident char from list of userhosts |
source code
|
|
|
|
|
|
|
rlog(level,
descr,
txt,
nofile=False)
log text if level >= loglevel |
source code
|
|
|
|
log(level,
txt,
nofile=False)
log text if level >= loglevel |
source code
|
|
|
|
|
|
|
handle_exception(ievent=None,
log=True,
short=False,
txt='')
print exception trace to sys.stderr |
source code
|
|
|
|
getlistensocket(listenip)
scan for a free socket on listenip |
source code
|
|
|
|
elapsedstring(nsec,
ywd=None)
return string of elapsed time |
source code
|
|
|
|
hourmin(ttime)
extract hour:minutes from time |
source code
|
|
|
|
striptime(what)
strip time indicators from string |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
uurminsec(ttime)
return hours:minutes:seconds string |
source code
|
|
|
|
|
|
|
getdaymonthyear(ttime)
return day-month-year tuple |
source code
|
|
|
|
|
|
|
checkchan(bot,
item)
check if chan <channel> is in string |
source code
|
|
|
|
getwho(bot,
who)
get userhost from bots userhost cache |
source code
|
|
|
|
waitforuser(bot,
userhost,
timeout=15)
wait for user response |
source code
|
|
|
|
|
|
|
|
|
|
geturl2(url,
decode=False)
use urllib2 to fetch an url |
source code
|
|
|
|
geturl3(url,
myheaders={},
postdata={},
keyfile='',
certfile='',
port=80) |
source code
|
|
|
|
geturl4(url,
myheaders={},
postdata={},
keyfile='',
certfile='',
port=80) |
source code
|
|
|
|
posturl(url,
myheaders,
postdata,
keyfile=None,
certfile='',
port=80)
very basic HTTP POST url retriever |
source code
|
|
|
|
deleteurl(url,
myheaders={},
postdata={},
keyfile='',
certfile='',
port=80)
very basic HTTP POST url retriever |
source code
|
|
|
|
puturl(url,
myheaders={},
postdata={},
keyfile='',
certfile='',
port=80)
very basic HTTP POST url retriever |
source code
|
|
|
|
|
|
|
decode_html_entities(s)
smart decoding of html entities to utf-8 |
source code
|
|
|
|
get_encoding(data)
get encoding from web data |
source code
|
|
|
|
|
|
|
|
|
|
waitforqueue(queue,
timeout=10,
maxitems=None)
wait for queue output |
source code
|
|
|
|
decodeperchar(txt,
encoding='utf-8',
what='') |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fix_format(s)
make sure bold txt is completed |
source code
|
|
|
|
|
|
|
jabberstrip(what)
strip jabber txt to barebones |
source code
|
|
|
|
plugnames(dirname)
get all plugnames in dir |
source code
|
|
|
|
filesize(path)
function to determine file size |
source code
|
|
|
|
|
|
|
stringinlist(s,
l)
check if string is substring of the lists elements |
source code
|
|
|
|
stripped(userhost)
strip resource from userhost |
source code
|
|
|
|
checkpermissions(ddir,
umode)
set permissions of dir to umode |
source code
|
|