1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00
Commit Graph

306 Commits

Author SHA1 Message Date
Timo Sirainen
e06e831608 /LOAD ./path/module - loads module from path relative to current
directory instea of trying to find it from ~/.irssi/modules or
$PREFIX/lib/modules


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1189 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-02-07 19:36:45 +00:00
Timo Sirainen
16012d63ce check_ignore() didn't check correctly if everything in specified level
was ignored


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1186 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-02-06 21:49:57 +00:00
Timo Sirainen
e387516951 Nicklist updates so that protocol specific xxx_NICK_REC can be used
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1177 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-02-02 22:10:20 +00:00
Timo Sirainen
7240717198 get_max_column_count(), columns_sort_list(): fixed to work properly
with empty list


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1176 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-02-02 22:09:11 +00:00
Timo Sirainen
f771409214 Ignores without nick masks didn't work
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1168 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-28 16:54:25 +00:00
Timo Sirainen
c4753213fe Ignore didn't check properly nick masks that contained only nick
without mask part (!*).


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1167 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-28 16:43:13 +00:00
Timo Sirainen
4bcae4c071 get_max_column_count() didn't work properly when there was only one item
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1166 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-28 16:37:13 +00:00
Timo Sirainen
f5ea5348c0 get_max_column_count(): we didn't handle correctly a situation where
last column of the list was empty


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1165 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-28 16:27:09 +00:00
Timo Sirainen
adf8b864fc bugfix
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1164 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-28 16:17:53 +00:00
Timo Sirainen
e75ce196e8 get_max_column_count(), columns_sort_list(): helper functions for
printing column lists


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1160 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-28 15:43:38 +00:00
Timo Sirainen
b4a56832cb backwards compatibility fix: when changing ircnet -> chatnet, the
chatnet name in memory was corrupted


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1159 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-28 10:19:53 +00:00
Timo Sirainen
56abbcd2e3 Ignoring updates. Added support for nickmatch cache. One ignore can't
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-28 07:22:22 +00:00
Timo Sirainen
a4cdb86128 /SET timestamp_format now specifies format of $Z. timestamp msg format
now uses $Z instead of that horrible $[-2.0]3:$[-2.0]4 that no-one
understood :) It's still possible to use the old method too.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1153 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-28 04:03:56 +00:00
Timo Sirainen
4cbabe2a83 nicklist_find() now finds only full nicks, nicklist_find_mask() finds
nick masks. This fixes *a* and similiar emphasis where irssi tried to
find nick mask *a* instead of nick *a*.

Also, emphasis with highascii didn't work unless emphasis_multiword was
set ON.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1143 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-28 01:45:31 +00:00
Timo Sirainen
1bfa0e1ee3 Nickmatch cache. A couple of helper functions to check if channel nicks
belong to something. Used for checking nickmasks in highlighting and
ignores (well, ignore isn't done yet).


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1138 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-21 04:09:48 +00:00
Timo Sirainen
443ba1a97d nickliset_set_host() for setting host, sends signal "nicklist host changed".
Changed "nick gone|serverop" -> "nicklist gone|serverop changed"


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1137 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-21 00:49:52 +00:00
Timo Sirainen
babf7c77ac net_getservbyport() - Get name of TCP service
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1134 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-18 02:23:35 +00:00
Timo Sirainen
0ef53540c0 Minor speedup, return immediately if masks == ""
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1133 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-18 02:23:11 +00:00
Timo Sirainen
769815a3f4 signal_emit() - one parameter after last one wasn't NULL but was taken
from va_list


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1132 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-18 02:01:59 +00:00
Timo Sirainen
c180c61816 memmove() -> g_memmove()
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1131 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-18 01:03:18 +00:00
Timo Sirainen
ac6cb753af nickmatch-cache.[ch] wasn't supposed to be included yet..
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1126 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-16 00:19:45 +00:00
Timo Sirainen
e66e10af19 Check if libtool creates libraries in .libs dir. Check if -lgmodule
doesn't work. #include "../config.h" instead of <config.h>, this should
fix problems when config.h is found in some -I dir.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1125 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-16 00:14:14 +00:00
Timo Sirainen
0d62878d6e Fixed some signedness warnings and memdebug.h should compile now fine
with -ansi.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1124 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-15 23:36:11 +00:00
Timo Sirainen
c49b5adc1b Added nicklist_rename()
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1115 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-14 18:30:02 +00:00
Timo Sirainen
93ba91b8ed Added my_asctime()
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1114 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-14 18:16:39 +00:00
Timo Sirainen
d427f74143 Check the return value of strftime() properly
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1113 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-14 18:02:03 +00:00
Timo Sirainen
1698500f80 $[.10]var truncates the var to 10 chars, but doesn't pad if var is
shorter than 10 chars


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1105 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-12 17:05:05 +00:00
Timo Sirainen
1a3c700838 Some signed/unsigned warnings removed. Don't call fe_exec_init/deinit in win32
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1104 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-11 10:15:34 +00:00
Timo Sirainen
d256f71a00 Highlighting cleanups. Added /HILIGHT -priority option.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1098 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-09 21:06:45 +00:00
Timo Sirainen
f8f1f814a5 query_find() didn't check for queries with no active server
Some DCC CHAT format fixes


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1097 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-09 18:56:56 +00:00
Timo Sirainen
e46e2b5e09 When using a /command that has only subcommands, print the list of the
subcommands instead of just "unknown command" text.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1093 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-07 13:53:58 +00:00
Timo Sirainen
14dbcd00bf "return 1" doesn't anymore stop signals in perl scripts. Fixed
Irssi::signal_stop() to properly stop the signal from going to other
perl scripts.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1086 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-07 08:23:06 +00:00
Timo Sirainen
069d9f3f02 nick_match_msg() : check was case sensitive
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1082 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-06 23:49:19 +00:00
Timo Sirainen
b4f4a1a9dd In "Configuration file was modified ..." text, added "Use /SAVE or
/RELOAD to get rid of this message."


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1068 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-05 06:49:47 +00:00
Timo Sirainen
f3f80c1499 Allow stopping signal more than once without sending GLib warning
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1061 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-04 17:27:21 +00:00
Timo Sirainen
1e4c658a18 Removed the "signal" and "last signal" signals. Changed perl's
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
2001-01-03 07:34:12 +00:00
Timo Sirainen
d58ea58abc net_accept(), net_getsockname() IPv6 fixes pointed out by pv2b :)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1050 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-02 07:05:07 +00:00
Timo Sirainen
806e1f0765 removed the win32 EINPROGRESS define, that wouldn't work anyway
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1049 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-02 05:55:36 +00:00
Timo Sirainen
ebeb48d307 Query bugfixes
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1048 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-01 19:29:05 +00:00
Timo Sirainen
c2ea82642d Some query changes. They should now work properly with /SAVEWINDOWS
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1043 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-01 17:13:55 +00:00
Timo Sirainen
2ae679be08 added "message own_public" and "message own_private" events that are
sent when /msg command is used. this way we don't need to parse the
/msg's options everywhere. also efnet @#channels support works now better.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1041 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-01 16:57:25 +00:00
Timo Sirainen
4a33801669 Added/moved several "typedef struct _XXX XXX;" to common.h so that
they're known to all files and I don't need those stupid "void *xxx"
anymore just to avoid useless #include. Header files themselves don't
either include others as often anymore.

Added channel->ownnick to point to our NICK_REC in channel's nicks.
Gives a minor speedup in few places :)

Moved completion specific lastmsgs from channel/server core records to
fe-common/core specific records. Also changed the nick completion logic
a bit so it should work better now. Removed
completion_keep_publics_count setting, but changed the meaning of
completion_keep_publics to same as _count was before. Nick completion
doesn't have any time specific code anymore.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1034 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-01 07:45:54 +00:00
Timo Sirainen
f372f6d327 pidwait: send status as second agument.
Implemented EPIC-compatible /EXEC


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1030 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-12-30 00:42:47 +00:00
Timo Sirainen
1257104980 comment update :)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1029 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-12-29 21:56:25 +00:00
Timo Sirainen
1a536c204c Instead of trying to send data to server every 1/10th of second, send
it whenever there's space in buffer using g_input_add() with G_IO_WRITE


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1023 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-12-28 17:22:35 +00:00
Timo Sirainen
06a6428d83 security fixes from 0.7.97.2
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1017 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-12-19 17:48:42 +00:00
Timo Sirainen
99b29df17c put back ircnet -> chatnet backwards compatibility, this time modify
the config file to use chatnet so after .98 we could remove this


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1016 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-12-19 17:47:33 +00:00
Timo Sirainen
db2c620951 when changing config file to new format send "setup changed" signal at
startup so that some settings that were tried to be used before
settings_check() was called would be properly loaded.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1015 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-12-19 17:42:56 +00:00
Timo Sirainen
cf0c2a7fb6 removed backwards compatibility from ircnet -> chatnet change
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1006 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-12-17 07:40:59 +00:00
Timo Sirainen
bbc33bff5e /SET prompt, /SET prompt_window - Specifies the text in prompt.
'prompt' is used when channel or query is active in window and
'prompt_window' is used with empty windows.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1005 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-12-17 07:39:22 +00:00
Timo Sirainen
aac80846b8 Settings are now stored in module-specific blocks. Irssi complains
about all unknown settings that are found inside those blocks.

Left backwards compatibility kludge which should be removed in 0.7.98.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1004 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-12-17 05:44:45 +00:00
Timo Sirainen
8cd67ba344 Destroy all settings and commands used by modules when they're unloaded.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1001 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-12-17 04:14:47 +00:00
Timo Sirainen
fc491c5f8d Some minor query fixes. Nick changes are also detected by checking if
query with another nick from same address if found.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@999 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-12-17 02:20:22 +00:00
Timo Sirainen
3011d2c01c removed useless chat_type checks
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@998 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-12-17 01:37:12 +00:00
Timo Sirainen
6e19541f46 Improved nick_match_msg() - it shouldn't give wrong matches as easily
anymore. Also supports multiple targets in one line (nick1,nick2: hello)


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@996 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-12-17 01:20:21 +00:00
Timo Sirainen
2937e72a68 fixed $topic uninit
added $winref


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@989 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-12-10 05:51:52 +00:00
Timo Sirainen
9681252b4c added $topic expando
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@988 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-12-10 05:41:01 +00:00
Timo Sirainen
9157c49b84 $T in empty window crashed
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@987 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-12-10 05:15:57 +00:00
Timo Sirainen
210409bc0b '_' character wasn't treated as acceptable $variable_name character.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@986 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-12-10 05:11:36 +00:00
Timo Sirainen
877ec1793a Don't crash with /reconnect <unknown tag>
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@984 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-12-09 22:58:59 +00:00
Timo Sirainen
e6cc73bd4b net_receive(), net_transmit(): error handling was buggy
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@980 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-12-08 20:13:21 +00:00
Timo Sirainen
d3e9880f48 bugfix
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@979 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-12-08 15:47:18 +00:00
Timo Sirainen
a99e93ef5d NICK_REC can be now inherited
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@971 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-12-06 01:07:21 +00:00
Timo Sirainen
809fa17d82 Use hardcoded array for signals instead of dynamic (pretty useless, "10
is enough for everybody" :). Check sysname/sysrelease only once at
beginning and use those values rest of the time.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@970 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-12-06 01:06:35 +00:00
Timo Sirainen
9f2f1dc70a Server events: switched order of data and server parameters. it's now
SERVER_REC *server, const char *data, .. hope this doesn't cause too
many problems :)


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@967 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-12-05 21:12:52 +00:00
Timo Sirainen
346808789c net_gethostbyname_nonblock(): don't crash if net_gethosterror() returns
error message as NULL.

Initialize winsock with win32.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@966 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-12-05 19:43:12 +00:00
Timo Sirainen
d1eaeca255 Split expandos from special-vars.c to expandos.c. Added list of signals
to each expando that can might change it's value.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@964 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-12-05 00:53:04 +00:00
Timo Sirainen
5f941b8fa6 added signal_add_to_id()
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@963 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-12-04 23:53:28 +00:00
Timo Sirainen
1c9f45b4a4 Use GIOChannel instead of sockets directly. Helps porting to win32 :)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@962 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-12-04 22:57:18 +00:00
Timo Sirainen
e18d43cef7 cmd_get_params() didn't work correctly if we didn't want any paramers
but only options.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@960 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-12-04 20:35:44 +00:00
Timo Sirainen
c8a90566ca /RECONNECT without any parameters and when not connected to any server
reconnects to first server in reconnect list.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@936 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-12-03 04:31:17 +00:00
Timo Sirainen
e7bfb7fe88 added g_timeval_cmp()
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@904 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-11-30 23:12:42 +00:00
Timo Sirainen
a01275959d cmd_options_get_server() : allow NULL cmd argument
eval_special_string() : if any of the commands separated with ; used
the arguments ($0, $1, etc.) don't anymore append all the arguments
after other commands.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@903 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-11-30 22:58:45 +00:00
Timo Sirainen
cbf45ea6bf stristr() and stristr_full() didn't work correctly with empty needle
argument.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@898 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-11-30 01:14:49 +00:00
Timo Sirainen
1ca99a108c file_checksum() shouldn't crash if it can't open the file.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@896 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-11-29 16:05:15 +00:00
Timo Sirainen
0d8239e40e config changes, CONFIG_REC is now required parameter for
config_node_set_int/bool() and config_node_add_list()


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@886 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-11-26 10:24:30 +00:00
Timo Sirainen
079932c405 Perl fixes and additions. theme_register() / printformat() works now
with scripts


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@884 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-11-26 09:22:18 +00:00
Timo Sirainen
f9653a5e1e some updates for checking when to not autosave config.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@872 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-11-26 02:26:13 +00:00
Timo Sirainen
a954fa03d0 Added modify counter which is increased every time something is changed
in configuration.

Autosaving settings doesn't even try to save them if config isn't
changed.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@871 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-11-26 02:17:14 +00:00
Timo Sirainen
532d6c1e9d Added some magic to /SERVER - if there's no server to disconnect from
in active server, irssi checks if some reconnection should be used
instead.

If there's one reconnection, /SERVER always uses it.
If there's reconnection to same host, it will be used (+same port is
preferred)


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@870 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-11-26 02:09:15 +00:00
Timo Sirainen
2e96f68445 mkpath() crashed with paths that didn't start with /
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@867 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-11-25 20:54:24 +00:00
Timo Sirainen
45c9838141 Time formats didn't work in directory name of autologs.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@866 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-11-25 16:30:56 +00:00
Timo Sirainen
d1d70fd5d7 s/enum GInputCondition/int/ - enums aren't supposed to orred together i
think.. at least MIPSpro gave warnings about it and it also feels wrong :)


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@865 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-11-23 23:29:32 +00:00
Timo Sirainen
8ce36c05ea several fixes to make irssi compile without warnings with MIPSpro
also fixed ctcp_queue_clean() - it might have crashed sometimes..


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@859 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-11-23 21:40:07 +00:00
Timo Sirainen
e3084d3ffa Win32 fixes - Irssi now compiles with MSVC++ :)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@851 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-11-18 15:32:59 +00:00
Timo Sirainen
14e5dc8b8e compiler warning fixes + one real bug in dcc-chat
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@850 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-11-18 15:31:28 +00:00
Timo Sirainen
2edcdd715f Remember who set the topic and when, display the info when using /TOPIC.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@845 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-11-17 14:59:32 +00:00
Timo Sirainen
61f33a6bb2 Some sizeof() fixes to IPv6 support when connecting to IPv4 addresses.
Linux didn't seem to have any problem with these but some other OSes
did.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@835 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-11-11 20:27:37 +00:00
Timo Sirainen
d49248c7fe level_get() didn't check ambiguous commands correctly - dcc always failed
because it was partial for dccmsgs.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@817 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-11-08 23:40:34 +00:00
Timo Sirainen
499db646e1 minor speed enhance
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@815 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-11-07 01:46:25 +00:00
Timo Sirainen
228c0842fc minor cleanups
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@814 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-11-07 01:42:21 +00:00
Timo Sirainen
6e27475e98 Updated stristr() and stristr_full() to be a bit faster.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@813 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-11-07 01:25:46 +00:00
Timo Sirainen
4301e04791 Regexp ignores are now compiled when they're created, not every time
they're checked (every time a new line is received). This should reduce
some CPU load when using them.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@812 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-11-07 00:06:35 +00:00
Timo Sirainen
da4d8445f1 small "fix"
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@801 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-11-02 16:29:05 +00:00
Timo Sirainen
73858a2e5e Some fixes.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@797 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-10-28 21:04:01 +00:00
Timo Sirainen
8653c6ea36 /SET log_theme - you can now write to log files with different theme
than to screen.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@795 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-10-28 03:01:11 +00:00
Timo Sirainen
b875e2e29d signal_stop(); signal_emit("same signal", ...); didn't work. other way
around it did though


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@785 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-10-27 01:18:16 +00:00
Timo Sirainen
e0bc134d66 Win32 updates
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@784 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-10-26 18:57:23 +00:00
Timo Sirainen
df10f182c0 Some fixes for compiling with Win32 :)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@783 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-10-26 18:12:20 +00:00
Timo Sirainen
cefc72bfe7 Log items weren't read correctly from config
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@769 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-10-18 21:29:22 +00:00
Timo Sirainen
0977ab90e5 Logging fixes. Autologging with same named channels in different
networks should work correctly.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@765 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-10-17 23:37:21 +00:00
Timo Sirainen
a2cac63e56 Irssi won't automatically overwrite configuration files if they're
changed while irssi is running:

- /SAVE asks whether to save it or not
- autosave at quit saves it to config.autosave file


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@762 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-10-15 19:21:21 +00:00
Timo Sirainen
98060c3185 Moved nick/msg/channel completion to core with some cleanups.
Moved ignore checking to fe-ignore-messages.c.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@750 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-10-14 14:07:31 +00:00
Timo Sirainen
f9a07afa5e match_nick_flags() didn't check that the nick actually began with a flag.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@748 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-10-14 02:10:22 +00:00
Timo Sirainen
015a598fa3 [irc_]channels_setup_[de]init() calls were in wrong places.
Reconnection forgot to join to old channels after the first
reconnection try.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@744 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-10-14 01:43:05 +00:00
Timo Sirainen
6a3efe49ab Autorejoin when join temporarily fails because of netsplit is handled
better now. Irssi prints a nice message about it only once and you can
abort it with /RMREJOINS command.

"channel query" -> "channel joined"

channels_join() must not use cmd_return|param_error() commands since we
don't necessarily call it from command handler and signal_stop() could
cause some damage.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@739 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-10-14 00:45:16 +00:00
Timo Sirainen
28f3e476da Complain only once with autologging if opening some log file failed
(locked by another irssi)


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@734 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-10-13 21:53:25 +00:00
Timo Sirainen
0ef25c9fb4 match_wildcards() failed if there was * at the end of the mask but
otherwise data matched (str* vs. str)


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@733 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-10-13 21:47:32 +00:00
Timo Sirainen
55299b6b4a Ignore was moved to core.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@729 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-10-11 22:01:23 +00:00
Timo Sirainen
3c78d95614 Moved ignore to core.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@725 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-10-09 23:40:18 +00:00
Timo Sirainen
0158782b02 Keyboard should never get stuck again when receiving huge amounts of
text from server that irssi doesn't handle fast enough.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@710 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-10-01 22:12:01 +00:00
Timo Sirainen
c1a191955b Chat protocol updates.
Module loading tries to load first from home dir, then the global dir.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@704 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-10-01 20:48:10 +00:00
Timo Sirainen
414348ca3c forgot to add this
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@702 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-09-30 22:59:37 +00:00
Timo Sirainen
2b8580c8a7 multiprotocol updates. SILC prints channel and private messages now
using the same message formats as IRC.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@699 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-09-30 22:49:48 +00:00
Timo Sirainen
3eea53d2ee minor updates
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@696 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-09-29 23:57:30 +00:00
Timo Sirainen
e256b3a108 Moved /DISCONNECT to core, other multiprotocol fixes.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@687 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-09-27 23:47:51 +00:00
Timo Sirainen
ec8c613101 module deinit fixes
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@686 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-09-27 23:46:20 +00:00
Timo Sirainen
29c8c6e1cd net_gethostbyaddr() fixed.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@685 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-09-27 23:45:17 +00:00
Timo Sirainen
79100fea45 modules are deinitialized at quit.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@684 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-09-27 23:43:53 +00:00
Timo Sirainen
b6de29afbd /SERVER irc.server.org 1234 now connects to port 1234 always even if
some other port is specified for the same server in setup.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@682 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-09-27 00:25:26 +00:00
Timo Sirainen
5f752567f6 "NONE" works now with combine_levels(). /WINDOW LEVEL NONE works and if
window doesn't have level it prints "NONE" instead of empty string.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@674 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-09-26 21:44:20 +00:00
Timo Sirainen
64e0b8d96b backwards compatibility for s/ircnet/chanet/ change.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@673 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-09-26 21:39:33 +00:00
Timo Sirainen
8478a63c36 /SET default_nick -> /SET nick
/FORMAT own_me -> /FORMAT own_action


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@654 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-09-06 23:24:12 +00:00
Timo Sirainen
4969326cd6 line_split() : use g_memmove() instead of memcpy() .. hm. how could
this even work before? :)


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@650 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-09-06 21:54:53 +00:00
Timo Sirainen
2d1ac3059a /set autocreate_query -> /set autocreate_query_level
fixes to /ircnet, /server and /channel commands
other updates and fixes


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@649 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-09-06 21:30:56 +00:00
Timo Sirainen
3edf444ca1 bugfix
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@642 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-09-02 19:29:32 +00:00
Timo Sirainen
755a8d40eb Updates.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@641 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-09-02 18:53:58 +00:00
Timo Sirainen
28a7908e73 Added chat protocol register. Changed all chat_type fields to use it.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@640 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-09-01 00:26:46 +00:00
Timo Sirainen
b4bdec4436 Object type checking fixes
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@638 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-08-30 22:29:55 +00:00
Timo Sirainen
3e2f19b030 updates
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@634 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-08-27 23:07:01 +00:00
Timo Sirainen
e395e87ded Lots of moving stuff around - hopefully I didn't break too much :)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@632 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-08-26 15:39:44 +00:00
Timo Sirainen
776895eeac log_day_change was never printed in logs.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@629 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-08-25 21:10:05 +00:00
Timo Sirainen
67cc9af1bd Channel mode handling changed - there's no more mode_xxx fields in
channel structure, but instead just one mode string field. Also
handling half-ops (+h) should work right.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@617 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-08-20 07:17:13 +00:00
Timo Sirainen
2e3a056110 /LAST - didn't work right.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@612 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-08-16 00:48:29 +00:00
Timo Sirainen
a02b903252 /MSG -servertag crashed irssi.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@609 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-08-15 21:54:33 +00:00
Timo Sirainen
3baf7fbd4c Some changes handling g_input_add() - maybe this helps to problems
where irssi sometimes eats all the cpu.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@608 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-08-15 00:22:08 +00:00
Timo Sirainen
6675cec459 mkpath() - behaves like mkdir -p. Autologging now uses it to create
log directories.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@591 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-08-12 15:50:50 +00:00
Timo Sirainen
308e84bbc4 WJOIN -> /JOIN -window
WQUERY -> /QUERY -window.
Added support for /QUERY -<server tag>.
Added aliases for WJOIN and WQUERY to default config file.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@590 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-08-12 02:16:52 +00:00
Timo Sirainen
ccf12d2bfc /LOG: Removed the -rotate option, it was pretty useless since adding
the % formats to file name already tells that the log should be
rotated.

Autologging supports log rotating now too, just add the wanted %
formats to /SET autolog_path


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@586 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-08-11 22:07:42 +00:00
Timo Sirainen
82d272799c Autologging fixes: Don't log WHOIS replies by default
(autolog_level = all -crap). And with /msg nick1,nick2 don't log to
file nick1,nick2.log but nick1.log and nick2.log separately.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@585 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-08-11 20:13:49 +00:00
Timo Sirainen
138079e3bd Fixes
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@560 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-07-31 20:40:24 +00:00
Timo Sirainen
c8706013f8 Moved some IRC specific server stuff to generic server stuff.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@551 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-07-30 17:30:54 +00:00
Timo Sirainen
87a8f71344 Bugfixes for non-irc server handling.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@550 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-07-30 17:19:16 +00:00
Timo Sirainen
ca402b6f66 send() - ignore EPIPE return value and just return "0 bytes sent". The broken
connection will be noticed after recv().


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@547 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-07-29 15:35:45 +00:00
Timo Sirainen
c529fe0096 Added syntaxes of all commands in comments, they're going to be used to
autogenerate help files.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@529 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-07-23 23:19:22 +00:00
Timo Sirainen
7f3f53bffe net_sendbuffer_send(): use const void *data instead of void *data
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@521 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-07-23 13:41:34 +00:00
Timo Sirainen
76be0d746e Added handle != -1 check to net_sendbuffer_create()
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@520 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-07-23 13:34:39 +00:00
Timo Sirainen
a3a066e9cf Don't allow recursive aliases.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@517 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-07-23 12:47:14 +00:00
Timo Sirainen
f83f64b6be /SET settings_autosave - If set ON, settings are automatically saved
when quitting and once per hour.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@516 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-07-23 12:29:50 +00:00
Timo Sirainen
1a655f3575 is_numeric() returns now FALSE if it was given empty string.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@514 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-07-23 11:54:54 +00:00