mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-24 03:29:28 +01:00
relay: remove unused relay() function; what was that about?
This commit is contained in:
parent
5999eedd98
commit
3a9df57c39
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user