mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-02 17:29:22 +01:00
Changed the type of the topic-separator configurable.
This commit is contained in:
parent
a4507d0d9d
commit
2dbbdb7a4c
@ -49,19 +49,11 @@ import privmsgs
|
||||
import callbacks
|
||||
import configurable
|
||||
|
||||
def ConfigurableTopicSeparator(s):
|
||||
s = configurable.StrType(s)
|
||||
if s.lstrip() == s:
|
||||
s = ' ' + s
|
||||
if s.rstrip() == s:
|
||||
s += ' '
|
||||
return s
|
||||
|
||||
class Topic(callbacks.Privmsg, configurable.Mixin):
|
||||
topicFormatter = '%s (%s)'
|
||||
topicUnformatter = re.compile('(.*) \((\S+)\)')
|
||||
configurables = configurable.Dictionary(
|
||||
[('separator', configurable.StrType, ' || ',
|
||||
[('separator', configurable.SpaceSurroundedStrType, ' || ',
|
||||
"The separator between individual topics in the channel topic.")]
|
||||
)
|
||||
def __init__(self):
|
||||
|
Loading…
Reference in New Issue
Block a user