diff --git a/src/context.py b/src/context.py index 47c51b2..04bfd1e 100644 --- a/src/context.py +++ b/src/context.py @@ -113,6 +113,11 @@ class IRCContext: self.client = client self.ref = None + def __format__(self, format_spec=""): + if not format_spec: + return self.name + raise ValueError("Format specificer {0} has undefined semantics".format(format_spec)) + def lower(self): temp = type(self)(lower(name), client) temp.ref = self.ref or self