Commit Graph

43 Commits

Author SHA1 Message Date
William D. Jones
ccf6f431bb Return userdata from pluginprefs __pairs metamethod to avoid immediate GC. 2022-02-16 12:44:09 -06:00
Mateusz Gozdek
90c91d6c9a plugins/lua/lua.c: fix segfault on lua_pop with Lua 5.4.3
Closes #2558

Co-authored-by: "Jan Alexander Steffens (heftig)" <jan.steffens@gmail.com>
Signed-off-by: Mateusz Gozdek <mgozdekof@gmail.com>
2021-04-04 21:17:05 -05:00
Patrick Griffis
7a275812c0 Revert word array length change
It turns out that the rfc sets a limit of 15 arguments and the
server (irccloud) sending that many in ISUPPORT was updated to
split it into multiple lines.
2020-09-21 11:22:50 -07:00
Patrick Griffis
453cb7ca79 Increase max number of words a line can be split into
This may have unintended side-effects but 32 is a very low value
and I was seeing real world bugs being caused by this. Specifically
an ISUPPORT line with more features than this could store.
2020-09-17 15:50:28 -07:00
culb
fc2fe7fd28 lua: Prevent loading a script if it's already loaded
Closes #1959
2017-04-28 07:55:14 -04:00
culb
5d72755027 lua: Prevent from loading if it's already loaded
Closes #1958
2017-04-28 07:50:43 -04:00
Patrick Griffis
19187dbacd lua: Fix handling -1 value in pluginpref 2016-08-05 21:15:26 -04:00
mniip
9ca1606e2a lua: Force 'return' when = is present 2016-07-14 17:04:58 +03:00
mniip
9c049271e7 lua: Add automatic return and = handling in console. 2016-07-14 01:43:26 +03:00
Patrick Griffis
823ef320a5 lua: Use luaL_checkinteger 2016-04-27 14:55:04 -04:00
Patrick Griffis
529ae4cc89 lua: Fix explicit braces warning 2016-04-07 19:02:38 -04:00
Patrick Griffis
d11b7f258c lua: Minor formating cleanup 2016-04-07 18:27:40 -07:00
Patrick Griffis
0694cb9045 lua: More consistency with Python plugin 2016-04-07 18:27:39 -07:00
mniip
f501e948ae lua: Some more refactoring. Fix unload hook in the interpreter. 2016-04-07 18:27:30 -07:00
Patrick Griffis
ba6a1190cd lua: More missing statics 2016-04-07 18:27:30 -07:00
Patrick Griffis
4abcd53044 lua: Make better use of GLib
- Use GPtrArray everywhere
- Remove unessary NULL checks
- Make use of g_clear macros
- Use g_str_has_suffix
2016-04-07 18:27:29 -07:00
mniip
2fe52bbf58 lua: Bump version and update copyright year. 2016-04-07 18:27:21 -07:00
mniip
5998696c2a lua: Use glib allocators 2016-04-07 18:27:13 -07:00
mniip
bc9a59d264 lua: Replace some pushnumbers with pushintegers 2016-04-07 18:27:07 -07:00
mniip
5699bf9e65 lua: Error if luaL_newstate returns NULL 2016-04-07 18:26:58 -07:00
Patrick Griffis
2e2b895ebe lua: Don't used mixed declarations
This requires a lot more cleanup
2016-04-03 11:04:48 -04:00
Patrick Griffis
2e478f1b5a Import lua plugin
Written by @mniip
2016-04-03 10:30:01 -04:00
Berke Viktor
b70062d6d2 Nuke Lua and Tcl 2013-04-01 04:51:34 +02:00
Dan Mashal
b04377825f fix incorrect FSF address 2012-12-23 11:36:54 -08:00
Berke Viktor
db218817fd Use configdir instead of *xchatdir* 2012-11-04 23:55:36 +01:00
Berke Viktor
4ec499c241 Eliminate warnings due to missing includes 2012-11-04 04:22:22 +01:00
Arnavion
5d9264aff6 Initial commit for utf8 everywhere. 2012-11-03 19:04:02 -07:00
Berke Viktor
82936df2af Some final rebranding 2012-10-30 10:42:37 +01:00
Berke Viktor
29f7a9180c Rebrand get_info(xchatdir) but remain compatible for Perl and Python 2012-10-30 09:59:58 +01:00
Berke Viktor
8d6f4d9d40 Some remaining fixes 2012-10-30 08:58:50 +01:00
Berke Viktor
e681eafa78 Rebranding for the rest of plugin* 2012-10-30 08:42:48 +01:00
Berke Viktor
45d4fa5801 Rebranding for XCHAT_EAT_* 2012-10-30 07:40:37 +01:00
Berke Viktor
4b7c7c2bb1 Rebranding for XCHAT_FD_* 2012-10-30 07:25:40 +01:00
Berke Viktor
91dd079add Rebranding for XCHAT_PRI_* 2012-10-30 07:18:25 +01:00
Berke Viktor
1a75c8e1be A lot more rebranding 2012-10-24 21:33:02 +02:00
Berke Viktor
ec301a5a54 Auto-load user plugins and scripts from <config>/addons
On Unix leave $(libdir)/hexchat/plugins for plugin packagers, on Windows
prevent users from modifying Program Files by ignoring everything except
bundled plugins
2012-07-26 20:53:59 +02:00
Berke Viktor
2b3e1f46e3 Use <configdir>/scripts to (auto)load Lua/Perl/Python/Tcl scripts 2012-07-21 19:16:31 +02:00
Berke Viktor
95aace51cc More solution fixes and add language interfaces 2012-06-10 12:49:17 +02:00
Berke Viktor
13ee029364 some more multiplatform support 2011-12-11 18:04:35 +01:00
berkeviktor@aol.com
d03d6e606b add wdk changes to named branch 2011-02-28 18:59:32 +01:00
berkeviktor@aol.com
f16af8be94 nuke the repo 2011-02-24 04:13:14 +01:00
berkeviktor@aol.com
f9b9d4ee2f fancier lua version string 2010-08-12 16:08:03 +02:00
berkeviktor@aol.com
25603820c1 add support for xchat-lua, but don't build by default 2010-08-12 02:56:10 +02:00