mirror of https://github.com/str4d/RelayBot.git
Rename relay say() method.
It's not neccessarily two-way, but it does go into the relay's channel.
This commit is contained in:
parent
822c2b2ff7
commit
52d1c14f91
|
@ -74,7 +74,7 @@ class Communicator:
|
|||
if identifier == protocol.identifier:
|
||||
continue
|
||||
instance = self.protocolInstances[identifier]
|
||||
instance.twoWaySay(message)
|
||||
instance.sayToChannel(message)
|
||||
|
||||
#Global scope: all protocol instances will need this.
|
||||
communicator = Communicator()
|
||||
|
@ -108,7 +108,7 @@ class IRCRelayer(irc.IRCClient):
|
|||
log.msg("[%s] Connection lost, unregistering."%self.network)
|
||||
communicator.unregister(self)
|
||||
|
||||
def twoWaySay(self, message, args=None):
|
||||
def sayToChannel(self, message):
|
||||
self.say(self.channel, message)
|
||||
|
||||
def joined(self, channel):
|
||||
|
|
Loading…
Reference in New Issue