also do .format(**) when there's no user
object
This commit is contained in:
parent
0eb92278cc
commit
50be75a5e2
1 changed files with 7 additions and 6 deletions
|
@ -15,6 +15,7 @@ class Module(ModuleManager.BaseModule):
|
||||||
|
|
||||||
if user:
|
if user:
|
||||||
formatting["~NICK"] = user.nickname
|
formatting["~NICK"] = user.nickname
|
||||||
|
|
||||||
line = line.format(**formatting)
|
line = line.format(**formatting)
|
||||||
minimal = minimal.format(**formatting)
|
minimal = minimal.format(**formatting)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue