mirror of
https://github.com/fulpstation/fulpstation.git
synced 2025-12-10 18:11:47 +00:00
Added CC-Nanotrasen, an IRC bot made by Skibiliano and given to us by him under CC-BY-SA 3.0 licensing WHAT DOES THIS MEAN? It means all servers running this SVN now have the option to use an easy to configure IRC bot capable of relaying adminhelps from ingame to the server/channel of their choice. - Runs on python 2.6 scripts with psyco support - Relaying can be toggled from config.txt (so you don't runtime with every adminhelp if you decide not to use it) - Comes with a bunch of other useful and fun tools too - Added a new global proc, send2irc(msg,msg2) YOU'LL NEVER GUESS WHAT IT DOES CONSIDERING WHAT I JUST MENTIONED ----msg and msg2 are just what text gets relayed to irc, separated by a |, for instance send2irc(hello, world) would come out as "CC_NanoTrasen: Hello | World git-svn-id: http://tgstation13.googlecode.com/svn/trunk@2783 316c924e-a436-60f5-8080-3fe189b3f50e
56 lines
2.2 KiB
Python
56 lines
2.2 KiB
Python
from htmltagremove import htr
|
|
def formatter(data):
|
|
newdata = []
|
|
data = htr(data)
|
|
bad = ["Your nick : Categories : ","\r","Advanced search - last",
|
|
"FMyLife","Get the guts to spill the beans","FML: Your random funny stories",
|
|
"Woman","Man","Choose","Health","Intimacy","Miscellaneous","Man or woman? ",
|
|
"Money","Kids","Work","Love","Email notification?",
|
|
"Moderate the FMLs","Submit your FML story",
|
|
"- If your story isn't published on the website, don't feel offended, and thank you nevertheless!",
|
|
"Pick a country","See all","Your account","Team's blog",
|
|
"Meet the FMLHello readers! Did you meet someone new this...The whole blog",
|
|
"Amazon","Borders","IndieBound","Personalized book","Terms of use",
|
|
"FML t-shirts -","Love - Money - Kids - Work - Health - Intimacy - Miscellaneous - Members",
|
|
"Follow the FML Follow the FML blog Follow the FML comments ",
|
|
"_qoptions={",
|
|
"};","})();","Categories","Sign up - Password? ", " Net Avenir : gestion publicitaire",
|
|
"FMyLife, the book","Available NOW on:","Barnes & Noble"]
|
|
|
|
for checkable in data:
|
|
if checkable in bad:
|
|
pass
|
|
elif "_gaq.push" in checkable:
|
|
pass
|
|
elif "ga.src" in checkable:
|
|
pass
|
|
elif "var _gaq" in checkable:
|
|
pass
|
|
elif "var s =" in checkable:
|
|
pass
|
|
elif "var ga" in checkable:
|
|
pass
|
|
elif "function()" in checkable:
|
|
pass
|
|
elif "siteanalytics" in checkable:
|
|
pass
|
|
elif "qacct:" in checkable:
|
|
pass
|
|
elif "\r" in checkable:
|
|
pass
|
|
elif "ic_" in checkable:
|
|
pass
|
|
elif "Please note that spam and nonsensical stories" in checkable:
|
|
pass
|
|
elif "Refresh this page" in checkable:
|
|
pass
|
|
elif "You...The whole blo" in checkable:
|
|
pass
|
|
elif "Net Avenir : gestion publicitair" in checkable:
|
|
pass
|
|
else:
|
|
if "Net Avenir : gestion publicitaireClose the advertisement" in checkable:
|
|
checkable = checkable.replace("Net Avenir : gestion publicitaireClose the advertisement","")
|
|
newdata.append(checkable)
|
|
return newdata
|