summaryrefslogtreecommitdiff
path: root/src/perl/perl-common.c
AgeCommit message (Collapse)Author
2002-10-28Cast pointers to IVs instead of using GPOINTER_TO_INT() which casts them toTimo Sirainen
ints. Hopefully fixes 64bit architectures. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2978 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-09-19support for threaded perl. patch by mls@suse.deTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2930 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-07-04Using Irssi::Ignore crashedTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2865 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-05-16Better !channel support - window items now have "visual_name" and channelsTimo Sirainen
and queries also have "name". Normally they're identical but with !channels the visible_name contains the short !channel name, while name contains full !ABCDEchannel name. The visible_name should be used whenever displaying the channel name, or as printtext()'s target. So, this breaks a few scripts in !channels, they need to be modified to use $channel->{visible_name} instead. Also /LAYOUT SAVE should finally work properly with !channels. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2797 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-04-28perl hash length fixes, they're also automatically checked now inTimo Sirainen
autogen.sh (by peder) git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2736 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-04-28$witem->{data_level} didn't workTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2735 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-04-23added $query->{last_unread_msg}Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2710 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-03-13removed the debugging code..Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2593 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-03-13added some debugging code to irssi_bless_iobject() - can it really be anTimo Sirainen
overflow? :) git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2590 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-03-11added ownnick to Irssi::ChannelTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2583 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-11I always forget Perl 5.004 doesn't have PL_na .. so, now I've declared forTimo Sirainen
5.004, and changed all STRLEN n_a code to use PL_na instead. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2238 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-06Irssi::signal_add(), Irssi::timeout_add(), Irssi::input_add() and theirTimo Sirainen
variants now also allow use of code references. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2199 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-03added a few asserts to make sure we don't mess up if IDs go above 16bitTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2183 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-01Added ~/.irssi/scripts and PREFIX/lib/irssi/scripts to default @INC pathTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2173 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-19perl_command() - just a small sanity check that we're not sending emptyTimo Sirainen
command. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2106 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-19Irssi::Irc::Dcc::* is now correctly blessed instead of using Irssi::Irc::DccTimo Sirainen
always. did s/irssi_bless/iobject_bless/, added simple_iobject_bless which DCC uses. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2092 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-19Chat protocol ID was assumed to be 8bit or less, this may not be so sinceTimo Sirainen
the ID is taken from generic unique ID-pool which grows fast.. Now the we'll divide the 32bit number to 16bit chat protocol ID and 16bit object ID. They might not fit either, so I think I'll need to rewrite this part of code some day :) git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2091 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-18Irssi::Chatnet can now be accessed from perl.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2055 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-24/SET perl_use_lib setting to specify the path for irssi's perl libraries.Timo Sirainen
Default should work usually, but if you for some reason want to use different then change this. May contain multiple paths separated with space. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1905 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-20Dependencies finally work correctly in perl libraries (they're each compiledTimo Sirainen
separately now). Added statusbar code to available to perl, it's now possible to create new statusbar items with perl scripts. statusbar_items_redraw(char *name) can now be used to easily redraw all named statusbar items in screen. Probably several other changes I've already forgotten :) git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1861 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-07/SCRIPT RESET didn't work properly (start/stop functions were called inTimo Sirainen
wrong order). Added a few extra deinits. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1712 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-07-30--with-perl-path -> --with-perl-lib=[site|vendor|DIR] with some fixes toTimo Sirainen
make it work better. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1693 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-07-30Script name is printed now correctly if there's an error inTimo Sirainen
timeouts/signals. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1688 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-07-29--enable-perl* -> --with-perl*. Added a new libfe_perl which handles /SCRIPTTimo Sirainen
commands. /RUN -> /SCRIPT LOAD, /PERLFLUSH -> /SCRIPT FLUSH, /PERL -> /SCRIPT EXEC. Added /SCRIPT UNLOAD, /SCRIPT LIST. Lots of cleanups. filename_complete() has extra argument for "default directory" which is searched if no path is given when completing. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1680 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-06-30use Irssi; use Irssi::Irc and use Irssi::UI are now automatically called soTimo Sirainen
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
2001-06-30Updates to perl documentation. Moved Rawlog->{lines} to Rawlog::get_lines()Timo Sirainen
instead. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1601 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-06-29Windowitem->{type} wasn't set properlyTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1595 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-06-27Don't print GLIB critical when trying to bless unknown iobject - this couldTimo Sirainen
well happen with some unknown objects like /EXEC -interactive's WI_ITEM_REC. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1583 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-06-26Perl blessing fixes.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1566 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-06-26added real_fname to log record.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1559 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-06-08added topic_by, topic_timeTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1541 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-03-17Hilighting updates. /HILIGHT -color, /SET hilight_color and /SETTimo Sirainen
hilight_act_color now use %codes for specifying color. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1402 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-02-20DCC updatesTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1267 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-02-17Moved fe stuff from perl-common to perl-fe.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1234 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-02-17/LOAD module tries to load "module_core" instead. If it wasn't found,Timo Sirainen
it fallbacks to "module" again. If it is found, it tries to load several other modules too, like irc_module, fe_module and fe_irc_module. Split perl module to perl_core and fe_perl. Removed "_common" from some fe_common modules. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1228 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-02-13Added PROCESS_REC to fe-exec.h and perl support for it. "exec new" andTimo Sirainen
"exec remove" sends PROCESS_REC as first argument. Added "exec input" signal to perl. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1212 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-28Ignoring updates. Added support for nickmatch cache. One ignore can'tTimo Sirainen
have both except and normal levels. Nick ignoring checks now with both old and new nicks. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1155 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-14use_protocols variable wasn't initializedTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1112 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-10bugfixesTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1101 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-09Highlighting cleanups. Added /HILIGHT -priority option.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1098 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-06Perl updates. Lots of updates to perl documentation :)Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1081 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-05Added printtext_string() which works like printtext(), except it printsTimo Sirainen
text from a string, so that %s, %d, etc. don't work. Changed perl's Irssi::print() use this instead as well as /HELP printer. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1072 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-03Removed the "signal" and "last signal" signals. Changed perl'sTimo Sirainen
signaling system to work without them, it should now work faster and better. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1053 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-12-29Irssi::print() doesn't call printtext() with args (.., "%s", text)Timo Sirainen
since it broke %_ etc. formats. But instead of crashing every time someone prints %s with Irssi::print(), irssi now checks all those formats and prints them as-is. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1028 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-12-29Irssi::signal_emit() was broken.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1027 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-12-28removed warningTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1025 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-12-09/perl command does now "use Irssi::Proto" for all chat protocols thatTimo Sirainen
have .pm file in @INC git-svn-id: http://svn.irssi.org/repos/irssi/trunk@983 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-12-09fixes, perl should work correctly now :)Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@982 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-12-06bugfix in handling command(), cmdchar at start of command was still required..Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@975 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-12-06perl changes - values() method doesn't exist anymore, instead ofTimo Sirainen
$server->values()->{...} you now use directly $server->{...} git-svn-id: http://svn.irssi.org/repos/irssi/trunk@972 dbcabf3a-b0e7-0310-adc4-f8d773084564