本文整理汇总了Python中channel.Channel.burst_TS6方法的典型用法代码示例。如果您正苦于以下问题:Python Channel.burst_TS6方法的具体用法?Python Channel.burst_TS6怎么用?Python Channel.burst_TS6使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类channel.Channel
的用法示例。
在下文中一共展示了Channel.burst_TS6方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: go
# 需要导入模块: from channel import Channel [as 别名]
# 或者: from channel.Channel import burst_TS6 [as 别名]
def go(self, line):
client = line.source
channel = line.args[0]
new = False
if channel in self.parent.channels:
channel = self.parent.channels[line.args[0]]
else: # New channel
channel = Channel(line.args[0], client)
print "making new channel", line.args[0]
self.parent.channels[channel.name] = channel
new = True
if channel.check_banned(client):
client.send_line_from_server("YOUREBANNED %s :Banned from %s (%s)" %\
(channel.name, channel.name, "Ban set on you :("))
return
for uid, member in channel.clients.iteritems():
if not client.orthogonal(member.client) and member.client.local:
member.client.send_line_from_server(client.gen_CLIENT())
channel.add_member(client)
channel.burst_client(client)
if new:
channel.clients[client.uid].status = CHFL_CHANOP
channel.properties = PROP_INTERNAL | PROP_TOPICREST
for server in self.parent.serverlinks:
channel.burst_TS6(server)
else:
channel.sendto_members(":%s JOIN %s" %\
(client.uid, channel.name), local=True)
self.parent.sendto_servers(":%s JOIN %s %s +" %\
(client.uid, channel.ts, channel.name))