mirror of
https://github.com/irssi/irssi.git
synced 2026-08-20 17:12:51 +02:00
use Irssi; use Irssi::Irc and use Irssi::UI are now automatically called so
you won't need to add those to scripts. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1603 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
e72780d4d6
commit
3005cad5c3
2 changed files with 13 additions and 5 deletions
|
|
@ -21,6 +21,7 @@
|
|||
#include "module.h"
|
||||
#include "modules.h"
|
||||
#include "signals.h"
|
||||
#include "core.h"
|
||||
#include "misc.h"
|
||||
#include "settings.h"
|
||||
|
||||
|
|
@ -156,6 +157,13 @@ char *perl_get_use_list(void)
|
|||
|
||||
str = g_string_new(NULL);
|
||||
|
||||
if (*PERL_LIB_DIR != '\0')
|
||||
g_string_append(str, "use lib \""PERL_LIB_DIR"\";");
|
||||
|
||||
g_string_append(str, "use Irssi;");
|
||||
if (irssi_gui != IRSSI_GUI_NONE)
|
||||
g_string_append(str, "use Irssi::UI;");
|
||||
|
||||
for (tmp = use_protocols; tmp != NULL; tmp = tmp->next)
|
||||
g_string_sprintfa(str, "use Irssi::%s;", (char *) tmp->data);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue