# global commands, available from all tabs (having an input, of course)
self.commands={
'help':(self.command_help,'\_o< KOIN KOIN KOIN'),
'join':(self.command_join,_("Usage: /join [room_name][@server][/nick] [password]\nJoin: Join the specified room. You can specify a nickname after a slash (/). If no nickname is specified, you will use the default_nick in the configuration file. You can omit the room name: you will then join the room you\'re looking at (useful if you were kicked). You can also provide a room_name without specifying a server, the server of the room you're currently in will be used. You can also provide a password to join the room.\nExamples:\n/join room@server.tld\n/join room@server.tld/John\n/join room2\n/join /me_again\n/join\n/join room@server.tld/my_nick password\n/join / password")),
...
...
@@ -106,26 +106,16 @@ class Core(object):
'p':(self.rotate_rooms_left,_("Usage: /p\nP: Go to the previous room.")),
'win':(self.command_win,_("Usage: /win <number>\nWin: Go to the specified room.")),
'w':(self.command_win,_("Usage: /w <number>\nW: Go to the specified room.")),
'ignore':(self.command_ignore,_("Usage: /ignore <nickname> \nIgnore: Ignore a specified nickname.")),
'unignore':(self.command_unignore,_("Usage: /unignore <nickname>\nUnignore: Remove the specified nickname from the ignore list.")),
'part':(self.command_part,_("Usage: /part [message]\n Part: disconnect from a room. You can specify an optional message.")),
'show':(self.command_show,_("Usage: /show <availability> [status]\nShow: Change your availability and (optionaly) your status. The <availability> argument is one of \"avail, available, ok, here, chat, away, afk, dnd, busy, xa\" and the optional [status] argument will be your status message")),
'away':(self.command_away,_("Usage: /away [message]\nAway: Sets your availability to away and (optional) sets your status message. This is equivalent to '/show away [message]'")),
'busy':(self.command_busy,_("Usage: /busy [message]\nBusy: Sets your availability to busy and (optional) sets your status message. This is equivalent to '/show busy [message]'")),
'avail':(self.command_avail,_("Usage: /avail [message]\nAvail: Sets your availability to available and (optional) sets your status message. This is equivalent to '/show available [message]'")),
'available':(self.command_avail,_("Usage: /available [message]\nAvailable: Sets your availability to available and (optional) sets your status message. This is equivalent to '/show available [message]'")),
'bookmark':(self.command_bookmark,_("Usage: /bookmark [roomname][/nick]\nBookmark: Bookmark the specified room (you will then auto-join it on each poezio start). This commands uses the same syntaxe as /join. Type /help join for syntaxe examples. Note that when typing \"/bookmark\" on its own, the room will be bookmarked with the nickname you\'re currently using in this room (instead of default_nick)")),
'unquery':(self.command_unquery,_("Usage: /unquery\nClose the private conversation window")),
'set':(self.command_set,_("Usage: /set <option> [value]\nSet: Sets the value to the option in your configuration file. You can, for example, change your default nickname by doing `/set default_nick toto` or your resource with `/set resource blabla`. You can also set an empty value (nothing) by providing no [value] after <option>.")),
'kick':(self.command_kick,_("Usage: /kick <nick> [reason]\nKick: Kick the user with the specified nickname. You also can give an optional reason.")),
'topic':(self.command_topic,_("Usage: /topic <subject> \nTopic: Change the subject of the room")),
'link':(self.command_link,_("Usage: /link [option] [number]\nLink: Interact with a link in the conversation. Available options are 'open', 'copy'. Open just opens the link in the browser if it's http://, Copy just copy the link in the clipboard. An optional number can be provided, it indicates which link to interact with.")),
'query':(self.command_query,_('Usage: /query <nick> [message]\nQuery: Open a private conversation with <nick>. This nick has to be present in the room you\'re currently in. If you specified a message after the nickname, it will immediately be sent to this user')),
'nick':(self.command_nick,_("Usage: /nick <nickname>\nNick: Change your nickname in the current room")),
'say':(self.command_say,_('Usage: /say <message>\nSay: Just send the message. Useful if you want your message to begin with a "/"')),
'whois':(self.command_whois,_('Usage: /whois <nickname>\nWhois: Request many informations about the user.')),
'theme':(self.command_theme,_('Usage: /theme\nTheme: Reload the theme defined in the config file.')),
'recolor':(self.command_recolor,_('Usage: /recolor\nRecolor: Re-assign a color to all participants of the current room, based on the last time they talked. Use this if the participants currently talking have too many identical colors.')),
self.commands['ignore']=(self.command_ignore,_("Usage: /ignore <nickname> \nIgnore: Ignore a specified nickname."))
self.commands['unignore']=(self.command_unignore,_("Usage: /unignore <nickname>\nUnignore: Remove the specified nickname from the ignore list."))
self.commands['kick']=(self.command_kick,_("Usage: /kick <nick> [reason]\nKick: Kick the user with the specified nickname. You also can give an optional reason."))
self.commands['topic']=(self.command_topic,_("Usage: /topic <subject>\nTopic: Change the subject of the room"))
self.commands['query']=(self.command_query,_('Usage: /query <nick> [message]\nQuery: Open a private conversation with <nick>. This nick has to be present in the room you\'re currently in. If you specified a message after the nickname, it will immediately be sent to this user'))
self.commands['part']=(self.command_part,_("Usage: /part [message]\n Part: disconnect from a room. You can specify an optional message."))
self.commands['nick']=(self.command_nick,_("Usage: /nick <nickname>\nNick: Change your nickname in the current room"))
self.commands['recolor']=(self.command_recolor,_('Usage: /recolor\nRecolor: Re-assign a color to all participants of the current room, based on the last time they talked. Use this if the participants currently talking have too many identical colors.'))