Skip to content

New Hexchat Tcl API

Compare
Choose a tag to compare
@DasBrain DasBrain released this 13 May 12:55

This release introduces the new Hexchat Tcl API.

Old scripts using the old API won't work with it.
A compatibility layer is being worked on, see compat.tcl.

The new API is in the ::hexchat namespace.
Currently available commands:

  • ::hexchat::unregister_hook hookptr
  • ::hexchat::prefs name
  • ::hexchat::hook_timer timeout command
  • ::hexchat::setcontext context
  • ::hexchat::list_fields ?list?
  • ::hexchat::emit_print event ?args...?
  • ::hexchat::pluginpref_get ?-int? name
  • ::hexchat::getcontext
  • ::hexchat::pluginpref_delete name
  • ::hexchat::findcontext ?server? ?channel?
  • ::hexchat::pluginpref_list
  • ::hexchat::hook_server ?-option ...? name tcl_command
  • ::hexchat::strip text ?flags?
  • ::hexchat::getlist ?list?
  • ::hexchat::getinfo id
  • ::hexchat::print text
  • ::hexchat::nickcmp string1 string2
  • ::hexchat::hook_print ?-option ...? name tcl_command
  • ::hexchat::command text
  • ::hexchat::hook_command ?-option ...? name tcl_command
  • ::hexchat::pluginpref_set name value