Alexander Færøy
7b81897287
Move the autolog_ignore_targets logic a bit around; fixes #673 .
...
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5080 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-07-22 19:45:51 +00:00
Jilles Tjoelker
38306ad488
Allow ctrl+home/ctrl+end to go to the beginning/end of scrollback.
...
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5075 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-05-22 12:48:02 +00:00
Jilles Tjoelker
1f9c560a74
Fix out of bounds access in event_wallops().
...
bug #662
Submitted by: nemo
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5068 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-05-15 11:54:33 +00:00
Jilles Tjoelker
48e87773f0
Accept 354 (WHOX reply) as a /who reply too (for redirection).
...
Ignore the parameters for matching because 354 does
not have a fixed format.
This helps irssi-proxy with clients that use WHOX,
such as xchat (away checking). WHOX works on ircu
and charybdis 3.1 servers.
Bug #671
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5064 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-05-13 19:27:20 +00:00
Jilles Tjoelker
3400958570
Ensure type matches format string in /uptime.
...
Garbled output could happen if time_t was a different size from long.
bug #665
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5060 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-04-17 12:42:41 +00:00
Emanuele Giaquinta
4ec53567a5
Remove leftover.
...
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5059 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-04-05 19:04:25 +00:00
Emanuele Giaquinta
fadb9f9edf
Fix r4998 change, declare 'environ'.
...
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5058 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-04-05 18:04:59 +00:00
Jilles Tjoelker
c4bd1631bb
Make the time duration parser stricter.
...
This makes /set server_reconnect_time = 10min fail
instead of setting the time to 0.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5057 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-04-03 22:09:17 +00:00
Jilles Tjoelker
bb92a2dbc7
Show numerics directed at channels in the channel window.
...
This is about numerics where the target parameter is
a channel, i.e. ":<server> <numeric> <#channel> ..."
Usually, this parameter is the user's nick or an asterisk.
An example is the numeric ircd-ratbox and charybdis send
to channel operators on a successful /knock.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5056 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-04-03 17:49:58 +00:00
Wouter Coekaerts
dde30e63d6
Correct previous commit: fix away checking
...
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5040 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-03-15 16:25:42 +00:00
Wouter Coekaerts
d81ec45378
Fix /NOTIFY list when nick is seen joining (bug #642 )
...
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5039 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-03-10 22:18:01 +00:00
Wouter Coekaerts
e5fee8869c
Include hostmask in 001 event sent by proxy (bug #650 )
...
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5038 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-03-10 21:36:35 +00:00
Jilles Tjoelker
afdb462c59
Remove unused variables.
...
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5032 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-03-01 00:22:29 +00:00
Jilles Tjoelker
0764675409
Remove unused variable.
...
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5031 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-02-28 23:09:33 +00:00
Jilles Tjoelker
5f05c7ca7a
Ensure variable is initialized.
...
Make sure not to set connection_lost if the server was
already disconnected.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5030 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-02-28 22:48:41 +00:00
Emanuele Giaquinta
66b223c49b
Remove unused variable.
...
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5029 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-02-28 21:51:53 +00:00
Emanuele Giaquinta
1d9db4db9a
Remove unused variable.
...
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5028 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-02-28 21:41:47 +00:00
Jilles Tjoelker
4f3b7696a0
Correct assertions.
...
Found using llvm static analyzer.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5027 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-02-28 20:51:22 +00:00
Jilles Tjoelker
8a6b0224b9
Add the command send/expire timeout only when needed.
...
This was the last always-on <1s timer.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5026 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-02-28 18:15:14 +00:00
Jilles Tjoelker
25b3a531be
Once a second seems sufficient for the expando timer.
...
These seem to change once a second at most, typically.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5025 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-02-28 18:02:48 +00:00
Jilles Tjoelker
2dd265ef39
Check for stale flood entries when lines come in, avoiding a 0.5 second timeout.
...
The timeout is now every 5 seconds and serves to
remove entries that do not send messages anymore.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5024 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-02-28 12:43:00 +00:00
Jilles Tjoelker
c57f58dea5
Move to a single /join function, avoiding confusion on "/join -window".
...
patch by exg
bug #644 , thanks for the useful bug report
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5023 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-02-27 14:32:33 +00:00
Jilles Tjoelker
d979a991c8
Check for SIGCONT using a custom GSource instead of every 0.5 second.
...
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5022 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-02-27 14:20:35 +00:00
Jilles Tjoelker
cb1f07352a
Reject invalid level specifications in /set.
...
Most of these have names that end in "_level".
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5021 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-02-21 21:17:51 +00:00
Jilles Tjoelker
946e7784b0
Make explicit how long the arrays for prefix_add and prefix_del are.
...
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5020 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-02-21 17:55:12 +00:00
Jilles Tjoelker
145f566f19
Use i_isspace to make this clearer.
...
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5019 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-02-21 17:34:13 +00:00
Jilles Tjoelker
fe5ebc57a9
Make an invalid boolean /set a CLIENTERROR instead of CLIENTCRAP.
...
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5018 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-02-21 17:22:32 +00:00
Jilles Tjoelker
115a7fc355
Reject obviously invalid numbers in /set.
...
A limitation of the settings model is that any value
that fits in an int is accepted, e.g. negative port
numbers.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5017 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-02-21 17:20:13 +00:00
Wouter Coekaerts
4ea8f3141e
emit "window item moved" instead of "window item remove" and "window item new" when a window item is moved to another window
...
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5012 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-02-13 18:57:55 +00:00
Alexander Færøy
859d434c60
Prefer g_path_get_dirname() over g_dirname().
...
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5010 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-02-10 20:45:27 +00:00
Alexander Færøy
7c02529402
Add /set autolog_ignore_targets.
...
Allows you to avoid specific targets from being logged via autolog.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5006 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-02-09 20:00:17 +00:00
Alexander Færøy
f53f106dc6
Don't tokenizee target since it wont contain more than one entry anyway.
...
Poke me if this breaks for you.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5005 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-02-09 17:51:24 +00:00
Alexander Færøy
2fffcf5a77
Code Cleanup:
...
Use g_string_printf() instead of g_string_sprintf() (which is considered deprecated.)
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5004 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-02-08 17:57:19 +00:00
Alexander Færøy
c561ba35e6
Code Cleanup:
...
Use g_string_append_printf() instead of g_string_sprintfa() (which is considered deprecated.)
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5003 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-02-08 17:22:42 +00:00
Alexander Færøy
32e01a5a06
Add strarray_find_dest(). Useful for checking whether a server_tag/target or target is found in a vector of strings.
...
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5002 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-02-07 23:03:24 +00:00
Emanuele Giaquinta
b12bd857a5
Call PERL_SYS_INIT3() and PERL_SYS_TERM() as documented in perlembed(1).
...
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4998 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-01-23 17:57:49 +00:00
Emanuele Giaquinta
db1b74b7f9
Fix 'defination' typo.
...
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4996 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-01-20 14:15:01 +00:00
Emanuele Giaquinta
9fd6a3f3cf
Replace invalid utf-8 bytes with U+FFFD when drawing a line.
...
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4995 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-01-18 12:46:57 +00:00
Emanuele Giaquinta
03545934e9
Emit 'print starting' with the correct argument in printtext_string{,window}.
...
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4994 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-01-18 11:55:27 +00:00
Emanuele Giaquinta
508f8e1ddb
Add Irssi::UI::Window::get_history_lines to get the content of a window's
...
history.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4993 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-01-17 22:33:29 +00:00
Emanuele Giaquinta
822e6caee8
Revert r4871, it breaks /script reset.
...
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4992 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-01-17 22:28:47 +00:00
Emanuele Giaquinta
2129c4b229
Properly unload the original script when using /script load to reload it.
...
bug #525 , patch by Lukas Mai.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4991 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-01-16 22:02:02 +00:00
Emanuele Giaquinta
4534ef242d
Use an io channel to write the config file.
...
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4990 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-01-16 17:12:27 +00:00
Jilles Tjoelker
d993ce7b06
Use PERL_SYS_INIT3 with the correct pointer type for argv.
...
This fixes perl crashes on startup on some machines.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4989 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-01-15 22:21:31 +00:00
Emanuele Giaquinta
b2566682ee
Fix minor leak.
...
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4987 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-01-15 11:02:23 +00:00
Emanuele Giaquinta
1da5914177
Remove unused and odd function.
...
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4985 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-01-14 17:53:57 +00:00
Emanuele Giaquinta
01042aec2d
Fix typos.
...
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4984 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-01-14 17:19:42 +00:00
Emanuele Giaquinta
2f06196ffb
Fix last change.
...
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4983 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-01-13 18:51:25 +00:00
Emanuele Giaquinta
fd6bd4d829
Remove broken and unused format to add an indent function to a line.
...
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4982 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-01-13 18:31:31 +00:00
Emanuele Giaquinta
9dcea776a1
Remove buggy /scrollback redraw - scrollback_save_formats.
...
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4981 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-01-10 18:38:08 +00:00