Move mentionable to room
This commit is contained in:
parent
4d59e67291
commit
b9a723f701
3 changed files with 7 additions and 21 deletions
|
|
@ -52,15 +52,6 @@ class Session():
|
|||
|
||||
return self.id.split(":")[0]
|
||||
|
||||
def mentionable(self):
|
||||
"""
|
||||
mentionable() -> str
|
||||
|
||||
Converts the name to a mentionable format.
|
||||
"""
|
||||
|
||||
return "".join(c for c in self.name if not c in ",.!?;&<'\"" and not c.isspace()).lower()
|
||||
|
||||
def is_staff(self):
|
||||
"""
|
||||
is_staff() -> bool
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue