Timo Sirainen
1bc83aba29
servertag needs to be saved too ..
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2810 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-05-18 04:18:52 +00:00
Timo Sirainen
b96222b311
save temporary ignores to config file with timestamp when to unignore.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2809 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-05-18 04:16:51 +00:00
Timo Sirainen
3eaeeac4f2
channel_setup_create() didn't set record type.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2808 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-05-18 03:26:04 +00:00
Timo Sirainen
afed99da62
more typedef struct separations.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2805 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-05-17 21:01:06 +00:00
Timo Sirainen
3ecf864f18
!channel fixes.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2803 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-05-17 15:22:05 +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
a26be5e37d
moved timestamp_format into lookandfeel category
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2775 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-05-11 22:53:16 +00:00
Timo Sirainen
8df077426d
server_setup_add() now emits signal "server setup updated"
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2771 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-05-11 00:37:48 +00:00
Timo Sirainen
1acc2be4e3
broke CHAT_PROTOCOL_REC into struct + typedef.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2770 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-05-10 22:41:22 +00:00
Timo Sirainen
ea4be04a07
removed unused #defines.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2754 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-05-05 15:39:40 +00:00
Timo Sirainen
17d5b644f4
query->createtime wasn't set
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2737 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-04-28 14:08:20 +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
cdec9aa9c6
check_address() didn't initialize *wildcards variable properly.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2709 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-04-23 08:57:38 +00:00
Timo Sirainen
cb7b881d70
when queried nick changes, "window item name changed" signal is sent too.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2695 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-04-17 21:03:04 +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
8f63d1e86f
display the refcount properly when complaining that signal is still
...
referenced
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2684 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-04-15 14:10:26 +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
bd00ff54c2
Fixed one error and several warnings with GLIB 2.0
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2663 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-04-10 02:53:06 +00:00
Timo Sirainen
52fee01584
if /CONNECT -! ircnet couldn't connect to first server, next was tried but
...
-! was forgotten.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2653 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-04-03 14:08:52 +00:00
Timo Sirainen
bfae72766e
Don't set channel->server = NULL when disconnecting, so scripts can still
...
use it in eg. "channel destroyed". Patch by Qrczak
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2648 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-03-31 19:07:23 +00:00
Timo Sirainen
1872087642
$topic shouldn't crash if query doesn't have a valid address set yet.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2639 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-03-23 17:42:48 +00:00
Timo Sirainen
8d2a14b476
Add server tag as well to topicbar with queries
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2638 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-03-22 22:30:45 +00:00
Timo Sirainen
265ecbc74d
Don't crash if there's no prefixes (botti doesn't) when loading module.
...
Patch by aldem-irssi@aldem.net
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2607 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-03-14 01:54:05 +00:00
Timo Sirainen
8ba1989227
Set ownnick to channel->NULL when the nick record is destroyed. Should fix
...
some perl script errors.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2592 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-03-13 01:30:20 +00:00
Timo Sirainen
2a57e797ce
When IPv4 or v6 wasn't forced, irssi picked improperly IPv4 even if there
...
was only v6 address.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2591 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-03-13 01:21:11 +00:00
Timo Sirainen
d5564a0e01
New queries should begin with last_unread_msg timestamp set to now. This
...
fixes /SET autoclose_query >0 + /SET autocreate_own_query ON closing queries
created by your /MSG almost immediately.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2588 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-03-11 18:20:42 +00:00
Timo Sirainen
9d423576aa
If -4 or -6 option is used with /SERVER, force the correct protocol match.
...
eg. /SERVER -6 host either connects to IPv6 host or fails.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2564 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-03-10 19:14:04 +00:00
Timo Sirainen
0d54e4e299
SIGHUP now does /RELOAD - useful with for example /SBAR prompt DISABLE when
...
you don't have an input line to recover :)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2556 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-03-10 15:20:44 +00:00
Timo Sirainen
8d245f2ddf
Don't send -autosendcmd after /UPGRADE.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2550 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-03-10 14:28:08 +00:00
Timo Sirainen
9293d23da2
/SET autoclose_query - now only last received private message affects when
...
the query is closed, ie. /WHOIS requests or nick changes don't reset the
counter.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2549 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-03-10 14:24:08 +00:00
Timo Sirainen
911f69dc3a
/UPGRADE saves now topic_time and topic_by.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2523 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-20 18:12:45 +00:00
Timo Sirainen
be0e7f04b7
if gethostbyname() failed, the return value was returned incorrectly
...
(accidentally cvs committed it after some of my test)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2516 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-18 19:48:35 +00:00
Timo Sirainen
4646cb7ec9
still one isxdigit() -> i_isxdigit()
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2510 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-17 19:41:34 +00:00
Timo Sirainen
c02ac34c65
Log writing sometimes might have produced some glib errors.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2499 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-17 14:41:38 +00:00
Timo Sirainen
490e411814
Don't crash if special vars line ends with '$'.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2488 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-17 09:37:23 +00:00
Timo Sirainen
6f136674e9
Removed useless casting.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2483 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-16 13:32:53 +00:00
Timo Sirainen
b38f4da166
renamed old config_node_index() to config_node_nth(). added new
...
config_node_index() function. added config_node_section_index() for
adding/moving node to specified position in list.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2460 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-15 22:18:35 +00:00
Timo Sirainen
99c3c13f13
fixed module_uniq_destroy() calls
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2444 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-15 08:37:06 +00:00
Timo Sirainen
c2d8dc7eee
PARAM_FLAG_OPTCHAN_NAME check didn't work properly and it was always
...
assumed, so * didn't work as channel parameter. also changed the how
PARAM_FLAG_OPTCHAN_NAME was defined.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2435 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-13 14:09:21 +00:00
Timo Sirainen
c0980aacdd
missed isxdigit() -> i_isxdigit() change
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2432 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-12 03:04:34 +00:00
Timo Sirainen
5fb5230963
Added IRSSI_GLOBAL_CONFIG as well
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2420 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-10 14:35:21 +00:00
Timo Sirainen
464ff76954
added #define IRSSI_HOME_CONFIG
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2419 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-10 14:33:42 +00:00
Timo Sirainen
9575eecb39
Removed some old backwards compatibility code.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2411 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-10 11:04:08 +00:00
Timo Sirainen
2891a871b7
only the first of --home / --config parameters were parsed, which broke eg.
...
irssi which was started with --config and /UPGRADEd.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2401 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-07 19:30:58 +00:00
Timo Sirainen
7b70a3d91a
'-' option as last parameter didn't work (eg. /LAST -)
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2400 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-07 19:27:47 +00:00
Timo Sirainen
0141801e2d
Set objects ->type = 0 when freeing to make sure we notice immediately if
...
they're being used after freed.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2399 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-07 19:17:36 +00:00
Timo Sirainen
cf83236346
printtext(): you can now specify server target with tag name instead of
...
record. This is useful with DCC chats when you know the initial server tag
but the server might be already disconnected.
So what this means is that you now get ~/irclogs/ircnet/=nick.log instead of
~/irclogs/=nick.log :)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2388 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-04 04:27:45 +00:00
Timo Sirainen
82b0c081e2
Server referencing in /EVAL really should have checked if the server wasn't
...
NULL :)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2387 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-03 23:14:22 +00:00
Timo Sirainen
ebaea06eb9
target_type for "/MSG *" wasn't set properly.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2384 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-03 21:58:14 +00:00
Timo Sirainen
7c94cb083f
Added target_type to send_message(), -channel and -nick parameters to /MSG
...
to specify if it's supposed to be to channel/nick. /MSG -channel is used
automatically by irssi when sending messages to channel (the "normal" way
without /msg). This should help with protocols that don't have any channel
name prefixes.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2383 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-03 21:53:37 +00:00
Timo Sirainen
6ea882f893
Added missing #include
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2382 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-03 19:24:51 +00:00
Timo Sirainen
e8957938ea
A bit more safer now to use /EVAL with a command that disconnects from
...
server.. Also added a FIXME: window item would need reference counting as
well, eg. "/EVAL win close;say hello" wouldn't work now.. But that's probably
job for the rewrite irssi. don't go use things like that :)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2381 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-03 18:32:46 +00:00
Timo Sirainen
aa544dec32
Added PARAM_FLAG_OPTCHAN_NAME which is like PARAM_FLAG_OPTCHAN, but doesn't
...
allow using "*" to specify active channel. Used with /OP, /DEOP, /VOICE and
/DEVOICE so you can do /OP * again :)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2380 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-03 18:24:22 +00:00
Timo Sirainen
0ce3f8243e
Comments are now allowed everywhere in config files.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2374 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-02 17:37:44 +00:00
Timo Sirainen
33d30268b4
added some pointer casting to get rid of warnings with some compilers.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2365 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-01 20:14:30 +00:00
Timo Sirainen
aed634ae08
/CONNECT and /SERVER crashed without parameters
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2361 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-30 22:00:06 +00:00
Timo Sirainen
0edf041e14
..and of course I broke IPv4 net_gethostbyname() with it :)
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2359 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-29 23:11:22 +00:00
Timo Sirainen
13eb6379e7
OK, looks like I was doing stupid things with IPv6 hostname lookups :) Back
...
when I originally wrote that code, there wasn't any man pages for them and I
couldn't really find any good docs either, so I just copy&pasted some code
from somewhere and it seemed to work. Anyway, it was doing reverse name
lookup for uninitialized host name which really wasn't a good idea :)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2358 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-29 22:16:40 +00:00
Timo Sirainen
f2a4a97668
net_gethostbyname() fix for ipv6.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2357 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-29 21:26:41 +00:00
Timo Sirainen
747d0f19ca
Fixed a few minor memleaks. Don't use g_strdup() in lib-popt because it may
...
be freed with a real free() call instead of g_free().
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2352 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-28 15:20:57 +00:00
Timo Sirainen
08c23ce6d4
Don't change the "wanted nick" when receiving NICK event from server, unless
...
we did the /NICK change. This is useful with the new irc servers changing
your nick to your UID instead of killing you, at reconnect time you'd get
"invalid nick" when irssi would try setting the UID as your nick..
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2351 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-28 05:28:25 +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
0f1550dbf8
Added -rawlog <file> option to /CONNECT and /SERVER, so you can get the
...
rawlog from servers that disconnect you too fast.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2346 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-26 12:43:47 +00:00
Timo Sirainen
e00877e89b
/SERVER ADD -noproxy wasn't saved to config
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2345 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-25 02:28:42 +00:00
Timo Sirainen
182adb805c
/SERVER ADD: added -noproxy option and -proxy which just removes the
...
-noproxy.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2344 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-24 20:57:16 +00:00
Timo Sirainen
d74d284463
Fixed a small memory leak when connected to same network twice.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2343 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-24 01:19:52 +00:00
Timo Sirainen
4c4f7ec042
last commit was only partial :)
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2340 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-22 21:04:39 +00:00
Timo Sirainen
92eaf0dc9a
Never reconnect immediately to server when server is being disconnected -
...
this could lead scripts (or maybe even irssi itself) handle the partially
disconnected server wrong. Also moved the server->disconnected = TRUE before
the "server disconnected" signal is sent, this makes sure the
server_disconnect() is never called twice.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2339 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-22 21:04:04 +00:00
Timo Sirainen
0157d234f8
Added /SET proxy_string_after setting which gets sent after NICK/USER, bnc
...
wants this.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2338 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-22 20:29:45 +00:00
Timo Sirainen
f12d3914e5
Added -before and -after options to /LASTLOG. You can also use
...
-<number> to specify both before and after values.
Added special "#" option name to commands which specifies that
-<number> parameter is allowed.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2331 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-20 16:57:06 +00:00
Timo Sirainen
bba5603903
Autosaving settings and autoflushing write buffer might have stopped from
...
working sometimes because of missing "return 1".
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2325 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-20 03:30:28 +00:00
Timo Sirainen
c20cc9bb1f
Added -noproxy option to /CONNECT and /SERVER.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2322 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-19 23:21:24 +00:00
Timo Sirainen
ab19c70aa1
Removed module_data from NICK_REC. It's not used for anything and just takes memory.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2317 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-15 14:07:19 +00:00
Timo Sirainen
dff49792ed
Settings names are now case-insensitive.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2314 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-12 14:32:28 +00:00
Timo Sirainen
1d7a8245ca
Whops, didn't actually fix the connection_lost :)
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2308 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-11 05:48:37 +00:00
Timo Sirainen
6d44620b4a
When commands were being parsed, the currectly active server should have been referenced, but the code was accidentally in subcommand parser not in the main one.. Also, the connection_lost wasn't checked after parsing the command and might have caused a glib error.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2307 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-11 05:47:52 +00:00
Timo Sirainen
a01aab7a64
Changed level HILIGHT -> HILIGHTS.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2297 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-08 07:36:40 +00:00
Timo Sirainen
41e92b3062
the same #ifdef { parsing problem..
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2296 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-04 21:28:26 +00:00
Timo Sirainen
8996062276
moved the two { chars inside #ifdef #else #endif to one { outside it, so it won't confuse some parsers.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2295 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-04 21:27:28 +00:00
Timo Sirainen
855f467474
Use static arrays, so it works with non-ansi C compilers.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2294 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-04 21:20:32 +00:00
Timo Sirainen
a72f7244ff
server_disconnect() should do nothing if you call it twice, especially it
...
shouldn't emit the "server disconnected" again.
We'll now handle the remaining data coming from server after disconnection.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2290 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-02 21:21:49 +00:00
Timo Sirainen
f594121100
Accidentally had committed a debug thing.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2289 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-31 16:31:08 +00:00
Timo Sirainen
bf5b6c08c5
Added WINDOW_REC declaration to common.h, removed unneeded #include "servers.h" from fe-windows.h which broke several files, added the #include in them.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2272 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-20 02:14:49 +00:00
Timo Sirainen
6720940e1a
Leading zeros didn't work well in IRSSI_VERSION_TIME.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2261 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-16 01:41:29 +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
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
26d9da61c8
net_listen(): when socket() failed because we tried to use IPv6, we should
...
have falled back to IPv4, but wrong errno was checked.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2248 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-14 22:19:54 +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
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
e8696c711e
Regexp-ignores weren't compiled at startup - thanks to Manoj Kasichainula
...
for noticing this, I never tried restarting when trying to reproduce the
regexp problems :)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2226 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-09 16:06:52 +00:00
Timo Sirainen
5dfe5f8a5d
$!xx! history search didn't work because history_func() got also the
...
trailing '!' character.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2213 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-07 19:45:47 +00:00
Timo Sirainen
4c6237256f
/IRCNET ADD -usermode option added.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2206 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-06 23:29:48 +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
5524f89d71
/UPGRADE shouldn't begin server reconnections in old client.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2176 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-01 20:23:48 +00:00
Timo Sirainen
4ebe07e0d1
command_unbind() - don't crash if trying to unbind a command not registered
...
in given module.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2166 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-29 22:05:24 +00:00
Timo Sirainen
c3429fa50e
/UPGRADE: when trying to restore connection to server of which chat
...
protocol is unknown, close the specified handle.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2148 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-25 17:03:00 +00:00
Timo Sirainen
ed4d24b282
/UPGRADE: Irssi no longer asks for /NAMES list from server when
...
rejoining channels, but the nick list is transferred in session file.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2144 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-25 16:13:12 +00:00
Timo Sirainen
5347d24e61
Doing /RECONNECT while server was still being connected to, irssi
...
didn't disconnect the server so you ended up having two connections.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2139 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-25 15:05:38 +00:00
Timo Sirainen
24015a360a
/FOREACH QUERY did actually same as /FOREACH CHANNEL :)
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2136 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-21 17:50:58 +00:00
Timo Sirainen
cd09cd6332
Still forgot to add pidwait_get_pids() here.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2133 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-20 20:54:21 +00:00
Timo Sirainen
d4d2fe5e80
added function pidwait_get_pids() which session.c uses - forgot to commit
...
last time :)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2132 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-20 20:48:43 +00:00
Timo Sirainen
94be91c30e
--session broke --help output
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2130 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-20 20:36:12 +00:00
Timo Sirainen
b24629822e
/UPGRADE: waited pids are now transferred to new client so we don't leave
...
zombie processes.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2129 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-20 20:29:45 +00:00
Timo Sirainen
c355002886
using signal_add() instead of signal_add_first() again. the ..first() wasn't
...
really needed and it broke autoaway.pl script .. which is because
/DISCONNECT and /UPGRADE commands destroy the server record, but it's still
left in the signal's parameter. Guess I'll need to add reference counting to
server record as well..
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2128 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-20 12:51:28 +00:00
Timo Sirainen
72d943acdb
/UPGRADE: --home and --config parameters weren't passed to new irssi.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2122 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-20 03:19:02 +00:00
Timo Sirainen
9cf8d32198
Typobugfix.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2120 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-20 02:48:53 +00:00
Timo Sirainen
e0841d15a2
/UPGRADE now saves the session, disconnects the servers so that the socket
...
isn't closed but irssi thinks its disconnected, then it quits irssi, and as
the last command executes the new irssi. This way we get clean
deinitialization so irssi can close log files, destroy scripts, etc.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2114 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-20 01:47:29 +00:00
Timo Sirainen
bb3592f5c7
/UPGRADE: server command queue is now flushed to make sure everything
...
gets sent to server. Channels are now stored in in config blocks
instead of just in one string, this way we can restore the topic and
key. Away status in server is also restored.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2113 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-20 01:29:23 +00:00
Timo Sirainen
333f6a3bab
Added net_sendbuffer_flush() for flushing the buffer.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2112 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-20 00:54:51 +00:00
Timo Sirainen
44565932e3
Don't break if /CHANNEL ADD -bots list has bots separated with more than
...
one space.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2109 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-19 23:12:00 +00:00
Timo Sirainen
baf8ac392c
grab the "send command" event with signal_add_first().
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2108 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-19 23:09:29 +00:00
Timo Sirainen
879702897b
eval_special_string() : spaces are now ignored after ';' separator (so
...
/alias echo foo; echo bar works properly). Also if there was any empty
commands they're now ignored.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2105 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-19 22:44:04 +00:00
Timo Sirainen
60dbc68bdf
Removed memdebug stuff.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2097 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-19 20:41:30 +00:00
Timo Sirainen
0ffcbdc9b4
Removed memory debugging code. It's a lot easier to check for buffer
...
overflows with electric fence and memory leaks with memprof.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2095 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-19 20:30:19 +00:00
Timo Sirainen
55137fa30d
get_argument() - allow arglist to be NULL, just assume that there's no
...
arguments then.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2083 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-19 14:17:16 +00:00
Timo Sirainen
01404a3713
/CONNECT -! doesn't autojoin to channels.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2082 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-19 14:02:27 +00:00
Timo Sirainen
4978d4cd14
Irssi printed GLib error if no PATH was set..
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2081 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-19 13:55:28 +00:00
Timo Sirainen
78f9c141dc
/UPGRADE didn't work properly when you were connected to multiple servers.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2080 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-19 13:52:10 +00:00
Timo Sirainen
5656ad352d
session_set_binary() - we can't get the full path to irssi binary from
...
argv[0] and we need it, so its searched now.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2079 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-19 13:33:28 +00:00
Timo Sirainen
ee708c1469
-botcmd isn't now sent to channels when /UPGRADEing.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2078 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-19 13:14:37 +00:00
Timo Sirainen
bd2af6cb98
Added syntax comment for /UPGRADE
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2072 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-19 02:00:18 +00:00
Timo Sirainen
a1b151d8d3
A few more updates.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2071 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-19 01:54:02 +00:00
Timo Sirainen
bbbb36cf19
/UPGRADE - upgrade-on-the-fly feature. Currently only moves the active
...
server connections to the new irssi process, but that should be enough to
never quit from IRC again :)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2070 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-19 01:48:58 +00:00
Timo Sirainen
e3fea8cf01
"setup reread" signal now sends the config file as parameter. Added
...
Irssi::get_irssi_dir() and Irssi::get_irssi_config(). Patch by peder@linpro.no
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2029 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-16 11:50:14 +00:00
Timo Sirainen
c6302cd6e7
Lag checking fixes - should work fine again.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2016 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-15 13:47:51 +00:00
Timo Sirainen
c17439820d
Don't crash when connecting to server with unknown chat protocol (eg.
...
specified in config file but module not loaded yet).
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2013 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-15 00:21:24 +00:00
Timo Sirainen
636b7ab3ac
typofix
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2004 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-14 16:31:09 +00:00
Timo Sirainen
a9a380fd54
settings_save() now sends "setup saved" signal - patch by peder@ifi.uio.no
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2003 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-14 16:28:56 +00:00
Timo Sirainen
1673246497
%X should generate "time changed" every second too.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1998 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-12 22:03:07 +00:00
Timo Sirainen
381f410058
extra check to make sure the "timer changed" signal is sent at startup.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1993 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-12 14:17:23 +00:00
Timo Sirainen
24d51a694b
/RAWLOG commands should work immediately after connection to server was
...
accepted (ie. don't wait for 001 event from server).
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1982 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-11 20:05:10 +00:00
Timo Sirainen
850cf993eb
Moved rewritten server redirection code from core to irc. This new code
...
should be able to do the redirecting a lot more error-proof. Changed
lag-checking to use PINGs instead of NOTIFYs. This breaks scripts using
redirection. Hopefully this doesn't break too much things in irssi :)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1980 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-11 18:59:19 +00:00
Timo Sirainen
712f3b383d
net_listen(): if creating IPv6 socket fails because of EPROTONOSUPPORT, try
...
without IPv6.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1979 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-10 20:15:24 +00:00
Timo Sirainen
9abd857618
net_connect(): if bind() fails, set the address back to INADDR_ANY to make sure it doesn't leave the socket in buggy state.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1978 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-07 14:35:00 +00:00
Timo Sirainen
6a82e806b4
Moved $(GLIB_CFLAGS) after -I includes, to make sure our own .h files get before possibly identically named headers in the glib's include directory.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1975 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-05 14:48:03 +00:00
Timo Sirainen
6e24ac82ed
Commands that accepeted * parameter as active channel didn't work properly -
...
active channel was used but the * wasn't removed from parameters.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1961 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-03 13:16:36 +00:00
Timo Sirainen
06435bea22
/RECONNECT ALL crashed irssi (typofix - s/unref/ref/ :)
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1959 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-03 12:58:36 +00:00
Timo Sirainen
f354fe54c7
Moved some stuff from irc to core. Added command_bind_proto() function to
...
bind protocol-specific commands. Added #define command_bind_irc() for easier
access. CMD_IRC_SERVER(server) check should be done at the beginning of each
command requiring IRC server as active server, it handles it correctly the
cases when it is not. Did some other cleanups as well.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1955 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-02 01:05:14 +00:00
Timo Sirainen
95b94ed83c
server->ischannel(char *) -> server->ischannel(SERVER_REC *, char *). Added
...
#define server_ischannel(server, data) and it's now used everywhere..
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1954 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-01 22:52:23 +00:00
Timo Sirainen
00f94a93a5
Crashfix when module didn't contain deinit() function.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1950 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-31 23:30:34 +00:00
Timo Sirainen
ee93268315
changed default log directory mode to 0700 and file mode to 0600.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1949 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-31 15:18:18 +00:00
Timo Sirainen
f7683c0423
Added a bit better error reporting.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1911 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-24 22:24:14 +00:00
Timo Sirainen
e4f34d9cd3
When logs are rotated, automatically create the new directory where to open
...
the log if it has changed.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1897 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-22 21:26:58 +00:00
Timo Sirainen
89794348b1
Checking that autojoined channels weren't already joined in same chatnet had
...
a typo so it checked all servers that the channel wasn't joined.
s/servers/chatnet_servers/
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1890 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-22 09:33:32 +00:00
Timo Sirainen
905a5127f4
if \x isn't a known escape sequence, it should print just x, not \x.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1887 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-21 18:58:09 +00:00
Timo Sirainen
388d2e1f44
deinit() function is now checked and saved when loading module. Unloading
...
modules that had module_deinit() function (not module_core_deinit()) wasn't
called before. Also, error message wasn't printed if module didn't have the
_core part and wasn't really irssi module.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1882 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-21 16:23:43 +00:00
Timo Sirainen
1256621041
Added reference counter to SERVER_CONNECT_REC. Since it's being moved around
...
a lot in reconnects etc. this should make it easier to track when it's
supposed to be destroyed. Hopefully fixes a crash I assume is related to
this but couldn't find..
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1880 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-21 13:59:07 +00:00
Timo Sirainen
ae1b5b0d50
added irssi_init_finished variable to core.h which is TRUE after "irssi init
...
finished" signal is sent.
Perl scripts aren't now autoloaded until irssi_init_finished is TRUE (fixes
the crash at startup).
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1879 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-21 13:22:28 +00:00
Timo Sirainen
06c431bcd7
Don't autojoin channels that have already been joined in some other server
...
connection in same chat network. This has mostly been just annoying, and
this enables us to add eg. 20 channels autojoinable, then create 2 server
connections and irssi will automatically join the first 10 in first
connection and 10 other in the later (well, or at least if the 10 later
channels get "not enough channels" message from server before the connection
is finished, which well might not happen .. problem :)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1875 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-21 11:08:49 +00:00
Timo Sirainen
e5c9dc37dc
Check time changes every half a second instead of every second.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1874 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-21 11:06:58 +00:00
Timo Sirainen
e5abcdb76c
fix a fix
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1869 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-20 22:02:55 +00:00
Timo Sirainen
097206878d
When assiging chatnet to server connect record, always try to get the name
...
from chatnets list so the case will be correct.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1868 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-20 21:39:01 +00:00
Timo Sirainen
476b5ec863
$~ crashed if arglist was empty
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1858 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-20 11:30:24 +00:00
Timo Sirainen
16247b8c34
fixed a small memleak when unloading module
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1843 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-15 18:37:13 +00:00
Timo Sirainen
53d5c92cf4
Fixed some memory leaks.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1837 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-14 14:14:54 +00:00
Timo Sirainen
42f5b80f2a
"extern const char *default_config;" - some other parts of irssi might want
...
to use the default config also.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1819 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-13 15:17:54 +00:00
Timo Sirainen
c988af4150
Added MODULE_DATA_UNSET() macro and started using it. Just to make sure we
...
don't try to access free'd data.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1818 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-02 07:55:51 +00:00
Timo Sirainen
26d84e25ab
added expando_get_signals() and special_vars_get_signals() to return list
...
of signals the expandos use. Also added "time changed" signal which gets
emitted when $Z changes.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1814 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-09-23 17:32:05 +00:00
Timo Sirainen
82ce76100c
s/PARAM_FLAGS_ONLY_PARAMS/PARAM_FLAG_ONLY_ARGS/ since they're called
...
arguments everywhere :)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1804 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-09-20 16:44:22 +00:00
Timo Sirainen
1b42f89ccb
$*, $~ and $-n should still work with PARAM_FLAG_ONLY_PARAMS.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1803 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-09-20 16:43:24 +00:00
Timo Sirainen
7814192f03
special vars: added PARSE_FLAG_ONLY_PARAMS. Theme loading now uses it so
...
you can use $C etc. in themes to print the active channel. printformat()
also expands it now correctly to the server/target where the message was
printed, not to the active window's server/target.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1802 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-09-20 15:58:14 +00:00
Timo Sirainen
eb9f1eb985
autolog: target name is now always lowercased with irc protocol.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1789 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-09-11 17:47:31 +00:00
Timo Sirainen
c7f7ec4391
/LOAD fixes for modules with no core part, and /LOAD ~/...
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1788 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-09-11 17:38:47 +00:00
Timo Sirainen
460281eb8a
/SET override_coredump_limit - sets core file size to unlimited if set ON
...
(default).
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1783 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-09-10 19:50:53 +00:00
Timo Sirainen
477e1615af
Loading modules that didn't have "core" part didn't work (eg. irc_proxy).
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1778 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-09-08 18:02:49 +00:00
Timo Sirainen
099c83a98e
Expando lookup crashed with hi-ascii chars.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1774 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-31 16:47:14 +00:00
Timo Sirainen
2d37f461ac
Module loading fixes.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1762 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-17 13:52:14 +00:00
Timo Sirainen
0d5e569195
Some internal changes how /SERVER command works. Added /SERVER PURGE
...
[<target>] command. The channel output is purged at /PART if the output
queue is larger than 10.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1759 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-14 13:19:06 +00:00
Timo Sirainen
803d805016
Module loading updates - /LOAD shows now also the statically loaded modules.
...
You can't /LOAD the same module twice. Syntax changed to /LOAD <module>
[<submodule>], /UNLOAD <module> [<submodule>].
NOTE: all modules now need to call register_module() in their init()
function.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1748 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-14 00:41:59 +00:00
Timo Sirainen
f584c1013c
minor speedups and signal removing fixes
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1747 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-14 00:03:02 +00:00
Timo Sirainen
4e3b1bba62
/LOG OPEN -color, /SET awaylog_colors - specifies that the color codes
...
should be written to log file.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1742 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-13 13:51:49 +00:00
Timo Sirainen
98b82723a1
Added function expand_escapes() which handles now escaping /EVAL and input
...
line if /SET expand_escapes is set. Supported escapes are \t, \r, \n, \e
(ESC), \x (HEX, \x1b), \c (CTRL char, \cA), \000 (octal, \033)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1727 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-08 20:00:25 +00:00
Timo Sirainen
072a4c774f
If we receive INVITE for a channel that is added with /CHANNEL ADD -auto,
...
join it immediately.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1724 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-08 17:47:54 +00:00
Timo Sirainen
6a422552d5
/MSG * in empty window now prints "not joined" error
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1707 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-05 06:45:29 +00:00
Timo Sirainen
0163f2771f
Signals weren't removed correctly.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1683 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-07-29 12:56:37 +00:00
Timo Sirainen
802ee7564c
Fixed /RELOAD crashing without parameters.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1664 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-07-29 00:27:23 +00:00
Timo Sirainen
3fb7a4115d
added destroy() function to WI_ITEM_REC. This fixes a potential crash when
...
"window item destroy" signal was being used.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1655 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-07-26 01:49:08 +00:00
Timo Sirainen
5eca2d861f
fixed using already free'd memory.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1648 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-07-25 19:29:50 +00:00
Timo Sirainen
fbe38dd2c8
command_runsub() - ignore multiple spaces between /COMMAND SUBCOMMAND
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1640 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-07-16 20:23:59 +00:00
Timo Sirainen
40c7fa1190
--home, --config parameters now expand relative paths to absolute at startup.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1635 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-07-16 16:56:52 +00:00
Timo Sirainen
c1ac5765b3
New /IGNOREs weren't immediately effective for nicks in channel. Some small
...
fixes for unignoring levels with /IGNORE.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1630 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-07-15 14:50:26 +00:00
Timo Sirainen
316bd7d142
Moved awaylog to core.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1629 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-07-15 14:07:48 +00:00
Timo Sirainen
de5348a084
Another /FOREACH update - it only goes through the current
...
servers/channels/queries, if the command creates new ones it skips them (ie.
/FOREACH CHANNEL /CYCLE works now).
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1628 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-07-15 13:49:57 +00:00
Timo Sirainen
79d1d7089a
Added --home and --config command line parameters to irssi to specify
...
locations for ~/.irssi and ~/.irssi/config
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1626 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-07-15 00:39:48 +00:00
Timo Sirainen
bcbb55dd1e
/FOREACH won't crash now if the command removes the item being accessed
...
(ie. /foreach server disconnect should work)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1625 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-07-14 23:24:05 +00:00
Timo Sirainen
cb763a0b52
"gui dialog" signals can now be safely emitted before the GUI is initialized
...
- the texts are queued until the GUI initialization is done and re-emitted.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1618 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-07-14 19:10:17 +00:00
Timo Sirainen
b365a78a5a
uname() returns non-negative if successful, not necessarily 0.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1613 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-07-13 19:17:43 +00:00
Timo Sirainen
2ddba459c0
Moved location of config, theme and doc files. Added debian dir for building a .deb easily.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1607 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-07-05 23:16:18 +00:00
Timo Sirainen
53975363ce
Using different ports in one server for different chat networks didn't work
...
properly.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1580 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-06-27 21:47:31 +00:00
Timo Sirainen
d0de9fe229
"log rotate" -> "log rotated"
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1565 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-06-26 16:47:56 +00:00
Timo Sirainen
8b733e0568
special-vars: added flag PARSE_FLAG_ESCAPE_THEME to escape { and } chars
...
with % char. Used this with statusbar items - now for example "{error xxx}"
topic won't print it with error color.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1564 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-06-26 15:33:07 +00:00
Timo Sirainen
b642a0e16f
moved "log rotate" after the logging was stopped.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1561 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-06-26 13:55:50 +00:00
Timo Sirainen
4ad8ebba7e
"log rotate" signal added
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1560 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-06-26 13:49:51 +00:00
Timo Sirainen
4c51bc9755
get_max_column_count() didn't work properly if items had wider items than
...
max_width.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1551 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-06-11 15:05:08 +00:00
Timo Sirainen
b0f75f79a2
Getting optional channel parameter was buggy - it used already free'd memory
...
and assumed the command handler was given CHANNEL_REC even while it could
have been any other WI_ITEM_REC ..though it used only the WI_ITEM_REC parts
so it didn't really matter..
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1544 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-06-10 22:19:15 +00:00
Timo Sirainen
7773aabb2c
Try to keep the number after server tag always the same when there's
...
multiple connections to the same server.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1540 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-06-08 21:19:08 +00:00
Timo Sirainen
f079263035
/LOAD: when using '.' character in module name irssi printed glib error
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1537 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-06-04 18:40:50 +00:00
Timo Sirainen
6f5c1117de
moved /SET ignore_signals to core.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1534 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-06-01 20:21:07 +00:00
Timo Sirainen
666f4b2463
get_max_column_count() didn't return correct value in save_column_widths
...
when it returned only one column.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1510 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-05-21 23:46:48 +00:00
Timo Sirainen
c2b2d45bd6
Getting rid of gettext, moved some _(..) texts to themes and left some error
...
messages hard coded.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1503 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-05-17 20:13:59 +00:00