Пример #1
0
def cmd_join(currentServer, currentChannel, args):
	"""
		Joins the given channel with the optional key.
		If no channel is given, the command tries to
		join the current activated channel if it's parted.

		Usage: /join [<channel> [<key>]]
	"""
	if not currentServer:
		return gui.mgmt.myPrint("Can't determine server.")

	if not args:
		if currentChannel and not currentChannel.joined:
			return sushi.join(currentServer.name, currentChannel.name, "")
		else:
			return gui.mgmt.myPrint("Usage: /join <channel> [<key>]")

	sushi.join(currentServer.name, args[0], " ".join(args[1:]))
Пример #2
0
 def key_dialog_response_cb(dialog, id):
     if id == gtk.RESPONSE_OK:
         sushi.join(server, channel, dialog.entry.get_text())
     dialog.destroy()
Пример #3
0
 def key_dialog_response_cb(dialog, id):
     if id == gtk.RESPONSE_OK:
         sushi.join(server, channel, dialog.entry.get_text())
     dialog.destroy()