1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-22 04:35:58 -04:00
Commit Graph

80 Commits

Author SHA1 Message Date
ailin-nemui
7e6e1f2e10 Use full paths to includes 2019-05-01 22:08:45 +02:00
Tim Konick
5917bc6f75 Follow g_strsplit with call to g_strfreev 2017-01-07 14:31:35 -08:00
LemonBoy
d4676c9855 Use the PARAM_FLAG_STRIP_TRAILING_WS flag wherever possible. 2015-11-09 23:02:41 +01:00
LemonBoy
16c71cf1fb Implement CHANTYPES support 2015-05-15 17:07:30 +02:00
dequis
f14199d9c1 Change all strcmp() to g_strcmp0() to handle nulls gracefully
Just a string replacement (but i did check every one of them)

    sed -i 's/strcmp(/g_strcmp0(/g' **/*.c
2015-04-07 22:41:05 -03:00
Michael Vetter
51239925ec source cleanup: remove trailing whitespaces 2014-09-11 19:10:33 +02:00
David Hill
0d4f13d20f Replace deprecated g_str[n]casecmp with g_ascii_str[n]cmp. 2014-06-10 12:06:19 -04: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
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
Jilles Tjoelker
251d956ddc prefix_add(): copy correct number of bytes
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4967 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-12-12 22:04:37 +00:00
Jilles Tjoelker
89cd47bf3a Allow storing multiple "other" prefixes such as +q and +a.
Original patch by JasonX, somewhat changed by exg and me.


git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4922 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-11-28 00:16:51 +00:00
Emanuele Giaquinta
2aac604293 Remove workaround no longer needed.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4803 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-04-11 21:27:12 +00:00
Wouter Coekaerts
0a9a05c5c0 Update chanop flag before emitting nick mode changed signal (patch by Johan Kiviniemi)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4492 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-05-12 13:19:35 +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
Geert Hauwaerts
9898328865 Local opers on IRCnet (umode +O) get the server->server_operator flag.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4442 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-04-09 14:55:42 +00:00
Valentin Batz
4d5200a4e1 Fixed a bug with isupport, after an upgrade from 0.8.9 prefix very well can be NULL, so check for it
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3750 dbcabf3a-b0e7-0310-adc4-f8d773084564
2005-05-14 12:32:03 +00:00
Wouter Coekaerts
124e79aeeb "ban remove" signal should pass who removed it, patch by Timothy Hatcher (Bug 166)
added it to docs/signals.txt too


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3696 dbcabf3a-b0e7-0310-adc4-f8d773084564
2005-01-03 18:54:39 +00:00
Wouter Coekaerts
4b40495a5c Also remember other (not k or l) modes with arguments
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3316 dbcabf3a-b0e7-0310-adc4-f8d773084564
2004-10-10 21:23:38 +00:00
Wouter Coekaerts
8b8c58f4ef Remember key not only with channel->key, but also in channel->mode (in the statusbar) on key-hiding-servers, like before isupport
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3315 dbcabf3a-b0e7-0310-adc4-f8d773084564
2004-10-10 21:09:02 +00:00
Timo Sirainen
e9c3a217e3 Don't replace channel key when receiving channel mode numeric. It could be a
fake key there.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3262 dbcabf3a-b0e7-0310-adc4-f8d773084564
2004-07-11 14:50:47 +00:00
Timo Sirainen
fbe8b88799 mode changes got irssi stuck
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3242 dbcabf3a-b0e7-0310-adc4-f8d773084564
2004-03-24 17:09:55 +00:00
Timo Sirainen
f08020571b fixed channel->chanop
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3230 dbcabf3a-b0e7-0310-adc4-f8d773084564
2004-03-23 19:14:49 +00:00
Timo Sirainen
ca62a55590 crashfix when setting mode to channel you haven't joined
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3222 dbcabf3a-b0e7-0310-adc4-f8d773084564
2004-01-25 19:42:04 +00:00
Timo Sirainen
c7f2d309d6 isupport fixes
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3220 dbcabf3a-b0e7-0310-adc4-f8d773084564
2004-01-25 18:23:12 +00:00
Timo Sirainen
33e7528edb isupport updates
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3219 dbcabf3a-b0e7-0310-adc4-f8d773084564
2004-01-25 18:18:18 +00:00
Timo Sirainen
217283caea isupport patch by David Leadbeater
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3211 dbcabf3a-b0e7-0310-adc4-f8d773084564
2004-01-20 10:57:57 +00:00
Timo Sirainen
13eb240ece mode +o nick -o nick2 did +o for the nick2 too
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3052 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-12-09 21:54:03 +00:00
Timo Sirainen
ef4bb2619d Support for /MODE #chan +o nick1 +o nick2 style grouping.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2981 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-10-31 17:24:49 +00:00
Timo Sirainen
f42df98fc8 "nick mode changed" now gives changed mode/type as parameters.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2972 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-10-26 18:52:45 +00:00
Timo Sirainen
5c6bbf6cc4 Don't bother aborting /OP, /VOICE, etc. just because we're not chanop/ircop.
That check was just broken with some servers where opping would be possible
without either.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2960 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-10-15 22:11:26 +00:00
Timo Sirainen
fd6fe24317 a bit more fixes for +k updating
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2906 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-08-27 19:46:48 +00:00
Timo Sirainen
1faed99b33 Don't update channel key from 324 numeric, some servers send channel key as
"*" in it which breaks irssi.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2905 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-08-27 19:42:23 +00:00
Timo Sirainen
d1e55d91b7 "/MODE !channel" should send the full name to server
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2838 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-06-05 12:20:46 +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
33738b682c Don't treat +d as regular channel mode.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2717 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-04-26 13:04:16 +00:00
Timo Sirainen
e47cab1ecc Added setby-parameter to "nick mode changed" and "channel mode changed"
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2704 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-04-22 09:47:13 +00:00
Timo Sirainen
091095fff3 Allow /OP, etc. commands for server operators as well. They may not work
everywhere, but the whole point of the check was to avoid accidental /OP *
or something while not opped in some huge channel.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2628 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-03-17 09:13:18 +00:00
Timo Sirainen
2865d3a33f /SET max_wildcard_modes 0 should disable the checking
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2578 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-03-11 04:30:13 +00:00
Timo Sirainen
aae7eae9a0 Added /SET max_wildcard_modes (default 6) - if a wildcard to /OP, /DEOP,
/VOICE or /DEVOICE matches more nicks than this, -yes option is required.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2560 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-03-10 16:15:03 +00:00
Timo Sirainen
a6f4afab2d /OP etc. shouldn't crash if channel hadn't received /NAMES list yet.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2538 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-03-08 18:40:43 +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
c4e8d67bf9 Added optional channel parameter to /OP, /DEOP, /VOICE and /DEVOICE
commands.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2366 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-01 23:01:58 +00:00
Timo Sirainen
05ecb785fb "/MODE #channel -k" automatically appends the channel key if it wasn't
given.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2360 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-30 01:57:34 +00:00
Timo Sirainen
ebd09ede51 bugfix for previous fix :)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2242 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-14 01:43:41 +00:00
Timo Sirainen
f8dd514805 e/I/O/q mode changes shouldn't change the visible channel mode.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2241 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-14 00:42:25 +00:00
Timo Sirainen
d4ee6fd604 User mode changes weren't visible.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2237 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-11 15:15:38 +00:00
Timo Sirainen
3f275ebd55 Added support for 326 and 327 whois numerics in OPN.
Removed keeping track of ban exceptions and invite list.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2212 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-07 19:40:37 +00:00
Timo Sirainen
be8778052e On nick collision kills, reconnect back immediately. On any other type of
kills, stop reconnecting to the server entirely.

When reconnecting to server and setting back the old user mode, only use the
modes that we actually wanted to change with /MODE commands, don't try to
set back modes given to us by server (eg. +r).


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2205 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-06 23:10:41 +00:00