|
|
@ -148,6 +148,12 @@ class Networks(object): |
|
|
|
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 |
|
|
|
# source) |
|
|
|
# source) |
|
|
|