summaryrefslogtreecommitdiff
path: root/src/perl
AgeCommit message (Collapse)Author
2017-02-28Don't emit the script destroyed signal before script is actually destroyedStephen Oberholtzer
The script unloading code originally worked like this: 1. Destroy package 2. Emit 'script destroyed' signal 3. Unhook script's signal handlers If a script added a 'script destroyed' signal handler, unloading that script would cause the 'script destroyed' signal to be sent to the (already destroyed) package. This would cause a script error, which would trigger a script unload, which would start the whole process over again, until we run out of heap or stack space and segfault. This commit simply reorders the operations so that the 'script destroyed' signal is sent *after* the script is fully destroyed.
2017-01-15perl_parse needs NULL terminated parameter list.Hanno
2017-01-06make irssi --with-perl build with separate object directoryMartijn Dekker
irssi 1.0.0 will not build if Perl is enabled and a separate object code directory is used. The problem was a relative path to an internal Perl dependency in four Makefile.PL.in files.
2016-12-12Expose 'sasl_success' to the perl side.LemonBoy
2016-11-01add missing inheritance to Exec item from 3532fc46ailin-nemui
2016-10-22Add TLS_REC.Alexander Færøy
This patch adds the TLS_REC structure. This structure is used to emit information about the TLS handshake from the core of irssi to the front-end layers such that we can display connection information to the user.
2016-10-22Rename SSL to TLS.Alexander Færøy
This patch changes the internal name of SSL to TLS. We also add -tls_* options to /CONNECT and /SERVER, but make sure that the -ssl_* versions of the commands continue to work like before.
2016-09-22Merge pull request #542 from LemonBoy/xs-addailin-nemui
Expose the CAP fields to the perl scripts.
2016-09-19Merge pull request #540 from LemonBoy/reset-autorunailin-nemui
/script reset can now also run the autorun scripts
2016-09-15Expose 'cap_toggle' to the perl scripts.LemonBoy
2016-09-13Make sure to make a copy of ERRSV content.LemonBoy
Otherwise we might end up showing an empty message. Fixes #522.
2016-09-13Expose the CAP fields to the perl scripts.LemonBoy
2016-09-11Add a '-autorun' switch to /script resetLemonBoy
This way we reload all the scripts in the autorun folder.
2016-08-12fix use after free in expando errorailin-nemui
2016-08-04remove curses terminal and ncurses macroailin-nemui
2016-07-12Allow Irssi::signal_remove to work properly with coderefsTom Feist
2016-06-05perl 5.10 fixailin-nemui
2016-06-03silent make perlailin-nemui
2016-03-02irssi proxy: allow listening on unix socketsLukas Mai
2016-02-18irssi proxy: allow multiplexing multiple networks over a single portLukas Mai
2016-01-11Merge pull request #393 from ailin-nemui/moduleversion-perlailin-nemui
forward ABI to perl modules
2016-01-07forward ABI to perl modulesailin-nemui
2015-12-13ensure staticlib perl works on 5.22 (for now)ailin-nemui
2015-12-10deinit perl on staticperl buildsailin-nemui
2015-12-10module check irssi versionailin-nemui
Add explicit checks into every module to match the ABI version defined in common.h
2015-12-09Add bindings for exec-type window items to PerlAilin Nemui
These bindings were missing and resulted in non-hash non-undef active entries when an interactive process is executing.
2015-12-09Merge pull request #65 from ailin-nemui/perl-irc-polyailin-nemui
forward alternate_nick to Irc::Server attributes
2015-11-25more perl inheritance warning fixesailin-nemui
2015-11-23Merge pull request #365 from ailin-nemui/perl_nickdx
fix nick class hierarchy
2015-11-24fix nick class hierarchyailin-nemui
2015-11-24stop cap_saslailin-nemui
2015-06-14Merge branch 'master' into irssiproxydequis
Conflicts: src/irc/proxy/listen.c
2015-04-07Change all strcmp() to g_strcmp0() to handle nulls gracefullydequis
Just a string replacement (but i did check every one of them) sed -i 's/strcmp(/g_strcmp0(/g' **/*.c
2015-02-24Add port to proxy client struct for Perl scriptsHans Nielsen
2015-02-16Silence unused value warnings in perl binding codedequis
sed -i 's/hv_store/(void) &/' This only results in a warning in older gcc versions, but that includes the one used in the Travis CI environment by default
2014-09-11source cleanup: remove trailing whitespacesMichael Vetter
2014-07-06Make configure checks able to build with -WerrorDavid Leadbeater
Also fix a few compiler warnings, this combined with pull #82 allows me to build with CFLAGS="-Werror -Wall".
2014-06-30Finish 256 colour support for IrssiAilin Nemui
256 colour patch is cleaned up and the remaining cases are made work, this includes especially Theme support, which was not implemented before. Changes not related to colours were reverted again, making a review of the two patches against master easier to follow. As a byproduct of the Hex-colour code parser, the 24bit colours are also implemented. Actually using them in the terminal is guarded by a compile time switch (as well as a run time switch), as it breaks the existing colour protocol and requires additional storage. To make a seamless usage, down-conversion is provided for 8 and 16 colours. Diverging from Tom's approach, the colour protocol is reverted back to the original one. Unfortunately, the changes required in the Theme engine will break the API. For more details, please refer to the patch documentation at either http://irssi-docs.wikispaces.com/Notes-256-Colour or https://github.com/shabble/irssi-docs/wiki/Notes-256-Colour
2014-06-30forward alternate_nick to Irc::Server attributesAilin Nemui
add the missing alternate_nick in Irc::Server by making an additional call to the Irc::Connect filler. this is not quite ideal but might need bigger refactoring otherwise.
2014-06-30Merge pull request #11 from ailin-nemui/print_text_after_time-apiAlexander Færøy
add print_text_after_time to specify time stamp for lines
2014-06-29Merge pull request #52 from dgl/stack-cleanupAlexander Færøy
Correct use of perl stack macros
2014-06-29Merge pull request #49 from dgl/stackemAlexander Færøy
Move PUTBACK to within the scope which uses the stack
2014-06-27add print_text_after_time to specify time stamp for linesAilin Nemui
add signal for line removal from textbuffer
2014-06-27s/INCLUDES/AM_CPPFLAGS/gDave Reisner
Silences warnings on recent automake such as: src/core/Makefile.am:3: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
2014-06-27Merge pull request #44 from dajohi/g_basenameAlexander Færøy
Replace deprecated g_basename with g_path_get_basename.
2014-06-27Merge pull request #59 from ailin-nemui/perl-pl-naAlexander Færøy
get rid of PL_na
2014-06-27Correct use of perl stack macrosDavid Leadbeater
Further to pull #49 this is the result of an audit of the use of perl stack macros. There were several cases where PUTBACK was being called where the stack pointer could be out-of-date. Also some misc. cleanup where the macros were used needlessly.
2014-06-27Switch to using G_DISCARD for call_pvDavid Leadbeater
PUTBACK was being called even for the error path which didn't use the stack. Emitting the "script error" signal can involve running Perl code (Irssi:core::destroy) therefore the stack can be reallocated. This can result in the perl stack being corrupted because the local stack pointer is out of date (although as it's use of freed memory the crash is not always instant).
2014-06-25cleanup char* casts and replace one useless SvPV with SvPV_nolenAilin Nemui
2014-06-24Define PERL_NO_GET_CONTEXT in all perl source filesDavid Leadbeater
This removes the calls to Perl_get_context() that get automatically added to XS code for ancient source code compatibility reasons. The result is about a ~60K size reduction in the binary (based on comparing two 64-bit stripped irssi binaries compiled --with-perl-staticlib).