Emanuele Giaquinta
7e4bc5c7f4
Remove unneeded includes.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4784 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-03-29 10:26:05 +00:00
Emanuele Giaquinta
cdaf0c72e8
Make strstr_full_case internal.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4778 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-03-28 12:59:26 +00:00
Emanuele Giaquinta
72930e0be3
Use g_ascii_str{,n}casecmp for case insensitive comparison with
...
ascii only strings.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4739 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-03-09 12:17:55 +00:00
Emanuele Giaquinta
cb7d969963
Rename some variables.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4718 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-03-03 01:57:50 +00:00
Wouter Coekaerts
9c2d621cc6
Oops. Update address correctly now.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4490 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-05-08 18:41:10 +00:00
Wouter Coekaerts
023026e12b
Update FSF address
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4489 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-05-08 18:16:58 +00:00
Wouter Coekaerts
f55a35185a
Make parse_time_interval recognize negative times. Patch by Danijel Tasov and Elmar Hoffmann (Bug 23)
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3990 dbcabf3a-b0e7-0310-adc4-f8d773084564
2005-09-10 12:51:43 +00:00
Valentin Batz
7a8c5f6763
Fixed bug with time settings where hours actually returned 60*hours
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3679 dbcabf3a-b0e7-0310-adc4-f8d773084564
2004-11-04 15:08:57 +00:00
Timo Sirainen
b886e97d5e
added strocpy()
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3238 dbcabf3a-b0e7-0310-adc4-f8d773084564
2004-03-23 22:07:55 +00:00
Timo Sirainen
1141081c34
parse_time_interval: x days were actually returned as hours. weeks were
...
returned as hours*7.. which also means I calculated the max. return value of
over 1 year wrong. It's actually 24 days, but it's hopefully enough. Removed
"weeks" unit to discourage usage of large values..
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3143 dbcabf3a-b0e7-0310-adc4-f8d773084564
2003-11-16 17:26:43 +00:00
Timo Sirainen
f764a8665c
Time parsing: allow omitting time unit without warning for backwards
...
compatibility.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3139 dbcabf3a-b0e7-0310-adc4-f8d773084564
2003-11-16 16:22:07 +00:00
Timo Sirainen
25fdeeaa8d
Removed execute(), not used.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3107 dbcabf3a-b0e7-0310-adc4-f8d773084564
2003-01-31 04:03:06 +00:00
Timo Sirainen
842a51c760
parse_time_interval() fallbacked to milliseconds, not seconds. some code
...
cleanups. patch by Peder
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3094 dbcabf3a-b0e7-0310-adc4-f8d773084564
2003-01-08 20:54:36 +00:00
Timo Sirainen
bd6fe052bc
Added time, size and level setting types. Breaks some settings - I'll add
...
automatic converter to these settings later. Meanwhile you CVS users can
fix your config files yourself :)
Time settings allow using "days", "hours", "minutes", "seconds" and
"milliseconds" or several of their abbreviations. For example "5d 4h
5msecs".
Size settings allow using "gbytes", "mbytes", "kbytes" and "bytes" or their
abbrevations. For example "5MB".
Level settings are currently handled pretty much the way they were before.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3080 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-12-28 17:54:13 +00:00
Timo Sirainen
c4c6428185
fix compiler warnings
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3077 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-12-28 14:20:24 +00:00
Timo Sirainen
dc8bd638e3
Irssi now uses 64bit file offets if it's only supported by system. Also did
...
a few changes to DCC so that it should be possible to send >4GB files.
DCC protocol uses 32bit "n bytes transferred" notifications, so I had to
bend the protocol a bit to allow 64bit files by truncating the value to
lowest 32bits. I'm not sure how other clients handle those notifications,
but irssi uses it only to figure out when the DCC SEND transfer is complete,
so it's quite safe to assume that if we've managed to write() all the bytes
and we receive the last 32bit of file size, it means the total file size
instead of the total - (n+1)*4GB.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3018 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-11-21 17:48:40 +00:00
Timo Sirainen
fe4cdce6e6
Handle correctly g_get_home_dir() returning NULL, assume it's the current
...
directory then.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2968 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-10-19 17:48:10 +00:00
Timo Sirainen
d11cb0f2c2
'\' characters in nicks were skipped when sending messages in queries.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2867 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-07-16 16:20:10 +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
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
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
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
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
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
1b8705bd44
Make sure there's always at least one column even if there's items
...
wider than max. width allows.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1320 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-03-03 21:01:18 +00:00
Timo Sirainen
a47ce2c449
Added strstr_full() and strstr_full_case()
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1309 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-03-03 17:34:35 +00:00
Timo Sirainen
194dd60f36
/SET names_max_columns, /SET names_max_width: Limit width of /NAMES list.
...
Forced max. 6 columns limit to /HELP
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1199 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-02-10 04:54:09 +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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Timo Sirainen
c2397475c5
Cleaned up code.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@480 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-07-16 20:18:05 +00:00
Timo Sirainen
dcc2e89b2e
Enabled lots of GCC warnings, fixed those that were easy to fix.
...
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@456 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-07-10 23:00:56 +00:00
Timo Sirainen
39282a342f
If joined channel had some low-ascii (color codes), they were displayed
...
wrong in statusbar and prompt. Also, if you're invited to some channel,
print the lowascii so that you can see them (^B, etc.)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@400 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-06-30 19:54:34 +00:00
Timo Sirainen
a5d31a195d
Changed option handling in /commands. Irssi will now complain about
...
unknown options and missing option arguments.
Renamed /SERVER -add, -remove and -list to /SERVER ADD, REMOVE and LIST.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@365 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-06-18 01:18:12 +00:00