|
|
@ -147,6 +147,12 @@ class Networks(object): |
|
|
|
except KeyError: |
|
|
|
except KeyError: |
|
|
|
raise NetworksNoSuchNetworkError(shortcut) |
|
|
|
raise NetworksNoSuchNetworkError(shortcut) |
|
|
|
return name |
|
|
|
return name |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def is_self(self, message): |
|
|
|
|
|
|
|
"""Return True if the message belongs to the logged user.""" |
|
|
|
|
|
|
|
if self.networks[message.network].username() == message.username: |
|
|
|
|
|
|
|
return True |
|
|
|
|
|
|
|
return False |
|
|
|
|
|
|
|
|
|
|
|
# This is basically a copy of all methods available in NetworkBase, with |
|
|
|
# This is basically a copy of all methods available in NetworkBase, with |
|
|
|
# the additional parameter "network" (to request data from just one |
|
|
|
# the additional parameter "network" (to request data from just one |
|
|
|