3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-28 05:29:25 +01:00

relay: remove unused relay() function; what was that about?

This commit is contained in:
James Lu 2015-07-14 23:26:21 -07:00
parent 5999eedd98
commit 3a9df57c39

View File

@ -469,17 +469,6 @@ def removeChannel(irc, channel):
if not utils.isInternalClient(remoteirc, user): if not utils.isInternalClient(remoteirc, user):
relayPart(remoteirc, remotechan, user) relayPart(remoteirc, remotechan, user)
def relay(homeirc, func, args):
"""<source IRC network object> <function name> <args>
Relays a call to <function name>(<args>) to every IRC object's protocol
module except the source IRC network's."""
for name, irc in utils.networkobjects.items():
if name == homeirc.name:
continue
f = getattr(irc.proto, func)
f(*args)
@utils.add_cmd @utils.add_cmd
def create(irc, source, args): def create(irc, source, args):
"""<channel> """<channel>