Questions tagged [hexchat]

A cross platform IRC client.

HexChat is an open source and cross platform IRC client. It is extensible via a C plugin interface and multiple scripting interfaces including Perl and Python.

Links

15 questions
8
votes
3 answers

Does comparing a pointer that has been free'd invoke UB?

This seems to be a fairly common pattern e.g. in hexchat (may not compile, see also plugin docs. also note that hexchat_plugin_get_info hasn't been used in forever so I'm omitting it for simplicity): static hexchat_plugin *ph; static int…
SoniEx2
  • 1,864
  • 3
  • 27
  • 40
3
votes
2 answers

How Timer command works in HEXCHAT

there is a command that I can't use... anyone knows the correct syntax? Usage: TIMER [-refnum < num >] [-repeat < num >] < seconds> < command> TIMER [-quiet] -delete < num>
behzad
  • 801
  • 3
  • 15
  • 33
3
votes
2 answers

"translating" One character to another in lua

I want to make a lua script that takes the input of a table, then outputs the strings in that table in their full width counterparts, eg input = {"Hello", " ", "World"} print(full(table.concat(input))) and it will print "Hello World" I tried it…
Alexwall
  • 557
  • 2
  • 5
  • 13
1
vote
1 answer

How do I get Hexchat to accept python 3.7+

When I install Hexchat and say I want the python plugin, it insists that I use python 3.6 I already have python 3.7. Is there a way to get hexchat to accept this later version?
birrellwalsh
  • 143
  • 8
1
vote
2 answers

HexChat Perl get network context instead of channel context

I have the following code in a channel message hook to get the server context and print to the server window: my $network = HexChat::get_info('network'); my $networkContext = HexChat::find_context(undef,…
rjschnorenberg
  • 661
  • 1
  • 9
  • 30
0
votes
0 answers

How are callbacks scheduled within HexChat's Python scripting interface?

In the HexChat Python scripting interface, are event callbacks guaranteed to run to completion before servicing another callback? My specific worry has to do with timer callbacks. If I write a callback to handle a server JOIN message, for instance,…
0
votes
0 answers

How do I make a Python plug-in for Hexchat thread-safe?

I tried to write a simple Python plug-in for the Hexchat IRC client. However, it seems it is not thread-safe and causes that Hexchat crashes. __module_name__ = "Demo" __module_version__ = "1.0" __module_description__ = "Demo plug-in" import…
0
votes
1 answer

NickServ HexChat Client Locked Username

I am using the HexChat client on my local machine. I have been using an unregistered nick, eg. foobar. When my connection has dropped I get a message when I try to reconnect: foobar is already in use. Retrying with foobar01... foobar01 is already in…
Alan A
  • 2,557
  • 6
  • 32
  • 54
0
votes
0 answers

Using DBus interface in Hexchat plugin prevents it from exiting

I am trying to write a Hexchat plugin in Python, which would start a server and then communicate with it using DBus and python-dbus library. Everything works fine, until I try to unload the plugin or close Hexchat (which unloads all plugins). The…
Fenikso
  • 9,251
  • 5
  • 44
  • 72
0
votes
1 answer

How does irc and Xchat communicate?

Does anyone know how Xchat communicate with IRC server? I'm looking for a IRC request message or Xchat request message with each other.
mellodi
  • 15
  • 1
  • 1
  • 9
0
votes
0 answers

'module' object not callable (Hexchat Plugin)

Traceback (most recent call last): File "", line 23, in isdown TypeError: 'module' object is not callable Not sure what's going on here. I'm very new to Python scripting. (This is for an IRC client called Hexchat. If you need the…
Anorak
  • 1
-1
votes
1 answer

In Hexchat or any IRC client, how do I view my past conversation with a person if that person is no longer in the network?

I believe I can message any name directly with msg , but is there a way to actually view my message conversation / history with that person?
Milan Lakhani
  • 371
  • 1
  • 2
  • 15
-1
votes
3 answers

Python 2.7: No module named hexchat

I'm trying to write a Python script that does something with the inputs from the IRC chat that is connected to twitch. However, when I do import hexchat, python keeps telling me there is no module named hexchat. I'm using Pycharm btw. I just want to…
JJGong
  • 129
  • 2
  • 11
-1
votes
1 answer

irc server response to JOIN comment

I'm new with writing an IRC sever. I get Log from joining the channel in freenode connection . The server response to : /JOIN #h was :test!~test@151.232.114.48 JOIN #h * :realname and test was my nickname. Does anyone know that , what is exactly…
mellodi
  • 15
  • 1
  • 1
  • 9
-1
votes
1 answer

Randomizing script for HexChat IRC Client, in Python or Perl

I have a hunch that the answer to this is embarassingly easy, but nonetheless I can't figure it out (the fact that I don't know any of these languages at all might be the case). What I need is a script which would work this way: First, you type…