1
0
mirror of https://github.com/irssi/irssi.git synced 2024-11-03 04:27:19 -05:00
Commit Graph

370 Commits

Author SHA1 Message Date
Timo Sirainen
0f8a81fdb1 UNLOAD method is called now for all scripts before they're destroyed.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2882 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-08-25 15:44:48 +00:00
Timo Sirainen
452db286da another crashfix
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2873 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-08-08 15:12:34 +00:00
Timo Sirainen
577c6fdb78 crashfix for sbitem->{window}
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2872 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-08-08 14:40:23 +00:00
Timo Sirainen
c7d1fa390b Added window variable to Irssi::TextUI::StatusbarItem
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2871 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-08-08 13:56:00 +00:00
Timo Sirainen
e7902ae551 Using Irssi::Ignore crashed
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2865 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-07-04 13:18:17 +00:00
Timo Sirainen
6b7c38d1c6 use Symbol qw(delete_packge) -> use Symbol; Symbol::delete_package(). Maybe
this helps with perl 5.004 not to crash at beginning, or maybe not :) Can't
test myself.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2823 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-05-26 14:36:44 +00:00
Timo Sirainen
933cbfe4b0 bugfix
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2822 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-05-21 07:33:23 +00:00
Timo Sirainen
4aa0b9111e /UPGRADE was broken, changed again the server connection code.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2821 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-05-20 04:12:12 +00:00
Timo Sirainen
09505d628c Irssi::get_gui() now returns IRSSI_GUI_xxx which is in use.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2820 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-05-20 03:25:48 +00:00
Timo Sirainen
d346fbe1a9 Better !channel support - window items now have "visual_name" and channels
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-05-16 00:34:37 +00:00
Timo Sirainen
b933f62111 fixes
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2791 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-05-13 18:25:21 +00:00
Timo Sirainen
2adba92338 fixed memory leaks with several functions.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2789 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-05-13 17:57:19 +00:00
Timo Sirainen
0a4cedd83d Added format_create_dest() + $dest->print() functions. here's also our first
magic perl variable - many thanks to Qrczak for helping with it :)


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2784 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-05-13 14:45:54 +00:00
Timo Sirainen
9c038783a4 timeout_add_once() didn't work.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2783 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-05-13 13:50:45 +00:00
Timo Sirainen
bd4f506b63 added format_get_length(), format_real_length() and strip_codes()
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2774 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-05-11 22:17:16 +00:00
Timo Sirainen
c1384d919b return value wasn't a good idea after all - added Irssi::timeout_add_once()
instead.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2758 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-05-07 23:40:21 +00:00
Timo Sirainen
0d76b65381 non-zero return value in timeout and input handlers now stops it.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2757 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-05-07 23:03:30 +00:00
Timo Sirainen
7d0af00133 perl hash length fixes, they're also automatically checked now in
autogen.sh (by peder)


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2736 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-04-28 13:24:27 +00:00
Timo Sirainen
c8188b61a8 $witem->{data_level} didn't work
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2735 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-04-28 11:30:49 +00:00
Timo Sirainen
da867d4d68 added signal_continue() for continuing signal emission with new parameters.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2730 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-04-27 21:53:25 +00:00
Timo Sirainen
abdd0f04c5 Irssi::Theme::get_format() now uses format tag instead of number.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2727 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-04-27 19:42:15 +00:00
Timo Sirainen
ad9329a1a6 added Irssi::Theme::get_format()
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2726 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-04-27 19:35:17 +00:00
Timo Sirainen
a68d8dd539 Irssi::format_get_text() didn't work
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2725 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-04-27 18:41:59 +00:00
Timo Sirainen
c5a6c78ba4 Irssi::command_bind*() commands were still using broken old signal
priorities


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2723 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-04-27 17:57:29 +00:00
Timo Sirainen
64c8feeede %# now toggles monospace font on/off. fe-text doesn't care about it, but
gtk/kde UI does. By default, all lists are printed using monospace fonts.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2718 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-04-26 15:43:09 +00:00
Timo Sirainen
30802787dc added $query->{last_unread_msg}
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2710 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-04-23 17:31:50 +00:00
Timo Sirainen
9b74ba4e5c fix
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2692 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-04-16 19:51:44 +00:00
Timo Sirainen
c7320514aa fixes for new signaling code.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2691 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-04-16 18:11:06 +00:00
Timo Sirainen
8b9c4823bf Rewritten signal handling code - it wasn't supposed to come before 0.9 irssi
but it doesn't break much things and is needed for Qt port :)


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2682 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-04-15 13:59:09 +00:00
Timo Sirainen
61e8c12bb5 Irssi::timeout_add() - don't allow smaller values than 10
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2658 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-04-09 05:18:11 +00:00
Timo Sirainen
980f3b01c5 print() fix
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2651 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-04-01 18:57:40 +00:00
Timo Sirainen
230735f18b bugfix
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2646 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-03-24 20:59:37 +00:00
Timo Sirainen
0d26146cf6 Perl's print and printf calls now write the text to irssi's window. You
can give the level like a file handle, eg. "print CRAP 'text';". You can
also give the window/server/target with $fh = $window->create_handle([level])
and $server->create_handle(target, [level]). Patch by juerd@juerd.nl


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2644 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-03-24 19:37:12 +00:00
Timo Sirainen
c9f6f04079 destruct level isn't touched anymore, it crashes irssi with a few people..
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2641 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-03-24 16:35:20 +00:00
Timo Sirainen
665ad121a8 "make clean" now cleans all perl subdirs properly too.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2621 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-03-16 11:14:35 +00:00
Timo Sirainen
2a1b4c0a17 $window->command() changed active window temporarily to wanted one and then
back to old one. This wasn't very good idea if the old window was destroyed
by the command..


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2613 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-03-14 21:59:16 +00:00
Timo Sirainen
bfb8e8da33 removed the debugging code..
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2593 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-03-13 01:33:30 +00:00
Timo Sirainen
7b1d5ed41a added some debugging code to irssi_bless_iobject() - can it really be an
overflow? :)


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2590 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-03-13 00:40:12 +00:00
Timo Sirainen
5fde51a364 added ownnick to Irssi::Channel
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2583 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-03-11 16:44:42 +00:00
Timo Sirainen
34e5a31673 "use Irssi" now prints a warning if it's used outside irssi, but doesn't
die.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2543 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-03-09 12:17:32 +00:00
Timo Sirainen
dd00622d39 scripts should be looked from share dir, not lib dir.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2534 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-03-01 19:56:50 +00:00
Timo Sirainen
fcc61f2382 window_activity() and window_item_activity() are now public. Added them to
perl as well.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2445 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-15 09:05:45 +00:00
Timo Sirainen
9bb16705a5 Support for "immortal" windows, that can't be closed until explicitly set to
mortal with /WINDOW IMMORTAL OFF. Status and msgs windows are immortal by
default.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2422 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-10 14:59:36 +00:00
Timo Sirainen
aaeea771c2 all subdirs are now specified in "perl_dirs" so it's easier to add/remove
directories.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2416 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-10 14:01:25 +00:00
Timo Sirainen
75e724fdf7 bugfix
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2393 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-05 04:36:07 +00:00
Timo Sirainen
6c291d34a4 broke $server->send_message()..
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2386 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-03 23:06:36 +00:00
Timo Sirainen
d322b86c3d Removed some backwards compatibility code between CVS versions that broke
/SET use_perl_lib


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2367 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-01 23:14:00 +00:00
Timo Sirainen
3801628b44 Forgot to commit utf8 change here.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2356 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-29 03:35:18 +00:00
Timo Sirainen
ebe60cca55 Scripts using Irssi::printformat() might have crashed irssi, especially if
they cought in autolog.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2349 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-27 22:15:37 +00:00
Timo Sirainen
f4897860b5 toupper(), tolower(), isspace(), is..etc..() aren't safe with chars in some
systems, use our own is_...() functions now instead.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2348 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-27 20:45:59 +00:00
Timo Sirainen
16693c461f Tab-completion for /SCRIPT UNLOAD crashed irssi soon after
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2342 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-23 20:36:52 +00:00
Timo Sirainen
5202ef9314 distclean -> distclean-generic so it'll be executed before clean-am which
removes */Makefiles.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2337 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-22 19:52:17 +00:00
Timo Sirainen
fbfc2b8ab6 Irssi::command_bind*() allows using hash.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2336 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-22 18:25:39 +00:00
Timo Sirainen
e4aa149c54 Irssi::signal_add_first() and .._last() allows hashes now.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2334 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-21 19:20:08 +00:00
Timo Sirainen
1af5f41812 Added Irssi::term_refresh_freeze() and ..thaw()
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2333 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-21 18:20:44 +00:00
Timo Sirainen
7131ceb909 g_strdup() the error message before emitting "script error" signal, since
perl scripting might be executed during that signal and it clears the error
message.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2302 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-10 17:36:41 +00:00
Timo Sirainen
d723a5b64b command_bind_first() and command_bind_last() didn't work properly.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2292 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-03 23:25:18 +00:00
Timo Sirainen
cffe29818d Irssi::signal_emit() - make sure the parameter is a reference before trying
to unreference it.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2291 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-03 21:19:16 +00:00
Timo Sirainen
de6f8a7439 Irssi::version() should return the time always with 4 digits, padded with
zeros if needed.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2285 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-27 22:35:16 +00:00
Timo Sirainen
9ddebe6bcf Added command history groups, set them with /WINDOW HISTORY. Patch by peder@ifi.uio.no
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2276 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-20 13:29:20 +00:00
Timo Sirainen
5916b9dcb8 Still more version changes .. Irssi::version() now returns the version in
"date.time" format, so now it's also possible to "use Irssi 20011216.0149;".

Also fixed a memory leak for Irssi::parse_special().


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2260 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-15 23:49:35 +00:00
Timo Sirainen
7bda808395 Added $versiontime and Irssi::version_time()
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2257 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-15 23:26:09 +00:00
Timo Sirainen
4dff614333 Irssi::ignores() wasn't working, it looked at the server list..
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2254 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-15 20:37:50 +00:00
Timo Sirainen
1aed7cb956 IRSSI_VERSION_DATE is now a number, so you can do #iffing with it
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2252 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-15 19:28:44 +00:00
Timo Sirainen
369ce5d699 perl_timeout_add() didn't add the script pointer to the source record, so
unloading scripts didn't remove the timeouts.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2245 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-14 15:59:35 +00:00
Timo Sirainen
6774b4b30f Added reference counting to server record. At least now we don't accidentally
use a destroyed server record when some /command disconnects the server
(shouldn't happen really) or when irc_send_cmd() fails sending data to server
and disconnects the server (I don't know if this ever happens, but if it does,
it very well could have caused crashes)


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2243 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-14 01:54:12 +00:00
Timo Sirainen
617123b5d4 I always forget Perl 5.004 doesn't have PL_na .. so, now I've declared for
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-11 16:44:53 +00:00
Timo Sirainen
d08830f9cb Added Irssi::settings_add_...(), patch by peder@ifi.uio.no
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2235 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-11 00:07:18 +00:00
Timo Sirainen
020861c698 Netsplit saved the NICK_REC, but didn't save the dynamically allocated strings
which were part of it. Removed it now and replaced it with saving only
op/halfop/voice status. Might have caused some crashes? (hopefully did :)


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2234 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-10 23:32:46 +00:00
Timo Sirainen
3b8622f1aa Allow exporting symbols, patch by juerd@juerd.nl
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2233 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-10 20:23:50 +00:00
Timo Sirainen
eb91b126ec Moved Irssi::command(), Irssi::Server::command() and Irssi::Windowitem::command() from ui to core. Also, Irssi::command() now doesn't default to active server/window item, if this breaks any scripts change them use Irssi::active_win()->command() instead.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2232 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-10 17:37:51 +00:00
Timo Sirainen
83adc00160 Added Irssi::command_set_options()
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2229 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-09 21:55:06 +00:00
Timo Sirainen
15e815e8d3 Better support for halfops, patch by yathen@web.de
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2228 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-09 17:13:48 +00:00
Timo Sirainen
ac8109ac9e fixed wrong hash key lengths, patch by peder@ifi.uio.no
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2224 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-09 00:41:33 +00:00
Timo Sirainen
3359d091b0 Fixed server_redirect_peek_signal() to compile again.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2222 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-08 02:03:25 +00:00
Timo Sirainen
0f29e57c14 Removed Irssi::require_version(), we'll use "use Irssi 20011207;" style now.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2217 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-07 22:18:39 +00:00
Timo Sirainen
a09075938f Added Irssi::require_version()
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2216 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-07 21:52:41 +00:00
Timo Sirainen
3f275ebd55 Added support for 326 and 327 whois numerics in OPN.
Removed keeping track of ban exceptions and invite list.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2212 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-07 19:40:37 +00:00
Timo Sirainen
d59dfd54b3 parameters types for timeout_add() and input_add() changed from void* to SV*
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2208 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-07 02:55:15 +00:00
Timo Sirainen
2533e17bcc Removed g_free(package) that wasn't supposed to be there.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2207 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-07 02:40:30 +00:00
Timo Sirainen
6be1390303 /UPGRADE broke reconnections to server.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2204 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-06 23:05:54 +00:00
Timo Sirainen
e173a416d2 Added some max_*_in_cmd + some more stuff to Irssi::Irc::Server record.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2202 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-06 21:14:06 +00:00
Timo Sirainen
e558f1252a Irssi::signal_add() accepts now a hash, so you can do eg. signal_add('sig1'
=> 'func1', 'sig2' => 'func2');


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2200 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-06 20:46:31 +00:00
Timo Sirainen
31dcd8258f Irssi::signal_add(), Irssi::timeout_add(), Irssi::input_add() and their
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-06 17:17:40 +00:00
Timo Sirainen
80dff168fd added signal_get_emitted() and signal_get_emitted_id()
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2197 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-04 16:41:49 +00:00
Timo Sirainen
6041c93b56 Irssi::UI::Window's data_level and hilight_color contained wrong hash
length arguments.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2189 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-03 23:18:31 +00:00
Timo Sirainen
544af9942e added a few asserts to make sure we don't mess up if IDs go above 16bit
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2183 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-03 17:45:34 +00:00
Timo Sirainen
9f5c181936 Added processes to be extern instead of static. Also added Irssi::processes()
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2182 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-03 17:05:09 +00:00
Timo Sirainen
cb0c661069 a bit more proper initializing of Irssi package..
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2180 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-03 14:40:54 +00:00
Timo Sirainen
294c94573a removed unused variable
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2178 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-03 13:05:46 +00:00
Timo Sirainen
fa37db9205 Added ~/.irssi/scripts and PREFIX/lib/irssi/scripts to default @INC path
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2173 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-01 18:34:01 +00:00
Timo Sirainen
6976bec3d9 Allow using Irssi::signal_add('command ...', ..) so irssi won't crash when
the script is unloaded.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2167 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-29 22:12:28 +00:00
Timo Sirainen
266193aa7e Added Irssi::Irc::get_mask() and Irssi::Irc::MASK_*
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2163 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-28 21:49:39 +00:00
Timo Sirainen
337ae1a862 max number of parameters for printformat() was calculated wrong.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2158 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-27 20:29:56 +00:00
Timo Sirainen
e246ca668b printformat_perl() crashfix was buggy :)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2151 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-25 18:34:20 +00:00
Timo Sirainen
ba445fe37e /SCRIPT LOAD modifies the script name so that all non-alphanumeric
characters are translated to '_' char .. now this behaviour is done also
when /SCRIPT UNLOAD is done, so people don't get confused why their "test-1"
script can't be unloaded.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2145 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-25 16:17:44 +00:00
Timo Sirainen
f0ce4f221b Irssi::printformat() doesn't crash anymore if you try to use unregistered
format.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2143 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-25 15:43:08 +00:00
Timo Sirainen
7ae96f540d Added printtext_string_window(), Irssi::UI::Window::print() uses it also
now.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2141 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-25 15:27:47 +00:00
Timo Sirainen
66b0ffe057 Irssi::Window::command() should make the specified window active_win
temporarily.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2138 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-25 15:01:39 +00:00
Timo Sirainen
ea904f8dc9 Irssi::printformat() crashed if the registered format contained $0- etc.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2137 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-24 01:31:49 +00:00