mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-10 21:50:59 -05:00
code cleanup
This commit is contained in:
parent
7d4cf8522f
commit
78c3793fbc
@ -7,7 +7,6 @@ from __future__ import unicode_literals, absolute_import, print_function, divisi
|
||||
import sopel
|
||||
|
||||
import collections
|
||||
import re
|
||||
import os
|
||||
import sys
|
||||
import codecs
|
||||
@ -246,12 +245,6 @@ def letters_in_string(text):
|
||||
"""Channel Functions"""
|
||||
|
||||
|
||||
def topic_compile(topic):
|
||||
actual_topic = re.compile(r'^\[\+[a-zA-Z]+\] (.*)')
|
||||
topic = re.sub(actual_topic, r'\1', topic)
|
||||
return topic
|
||||
|
||||
|
||||
def channel_privs(bot, channel, privtype):
|
||||
privlist = []
|
||||
for user in bot.channels[channel].privileges.keys():
|
||||
|
||||
Loading…
Reference in New Issue
Block a user