summaryrefslogtreecommitdiff
path: root/src/irc/core/channels-query.c
AgeCommit message (Collapse)Author
2017-10-08Fix segfault in query_remove_allJoseph Bisch
It is possible for rec to be NULL in query_remove_all, resulting in a segfault. So return without doing anything if rec is NULL.
2017-10-08fix uaf in chanquery moduleailin-nemui
the chanquery needs to be removed in any case if a channel rec is destroyed, regardless of any state Fixes GL#13
2014-11-08typo fixes - https://github.com/vlajos/misspell_fixerVeres Lajos
2007-05-08Oops. Update address correctly now.Wouter Coekaerts
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4490 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-05-08Update FSF addressWouter Coekaerts
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4489 dbcabf3a-b0e7-0310-adc4-f8d773084564
2006-08-20don't wait for all /names replies before syncing if we can't combine queries ↵Wouter Coekaerts
anyways. Patch by jilles git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4321 dbcabf3a-b0e7-0310-adc4-f8d773084564
2004-03-10If channel has more nicks than /SET channel_max_who_sync, don't ask /WHOTimo Sirainen
list to avoid getting kicked out of server (Max SendQ exceeded). git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3229 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-08-27Don't update channel key from 324 numeric, some servers send channel key asTimo Sirainen
"*" in it which breaks irssi. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2905 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-03-31Don't set channel->server = NULL when disconnecting, so scripts can stillTimo Sirainen
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
2001-12-07Still ban exception / invite list removes.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2214 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-07Added support for 326 and 327 whois numerics in OPN.Timo Sirainen
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-07Fixed 2 small memory leaks.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2209 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-03"channel wholist" still wasn't sent at proper times.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2188 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-03"channel wholist" was sent to channels that hadn't received /WHO list yet.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2187 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-25added support for servers where /WHO only gives "end of who" message.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2153 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-18When destroying data used from server in "server disconnected" signal, setTimo Sirainen
the data to NULL as well, the server record is still used after the signal is finished (the channels it uses are destroyed, which may trigger scripts etc.) git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2046 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-17329 event reply for MODE #channel shouldn't go to "chanquery abort", butTimo Sirainen
we'd rather just want to print it. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2042 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-16If the last query fails we should make the channel synced.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2031 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-14Still some syncing fixes. Don't loop forever now if we don't find the replyTimo Sirainen
to mode/who. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2009 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-14Yet another bugfix for channel sync.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2006 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-14Channel syncing rewrites.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2005 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-12Redirection fixes - added count parameter.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1999 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-11Redirection fixes.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1983 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-11Moved rewritten server redirection code from core to irc. This new codeTimo Sirainen
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-02Moved some stuff from irc to core. Added command_bind_proto() function toTimo Sirainen
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-10-23Don't print glib errors when parting a channel which isn't synced yet.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1904 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-21Channels weren't synced if you joined multiple channels at once and one ofTimo Sirainen
the chennels couldn't be joined for some reason. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1877 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-14Irssi lost channel key for secret/private channels after join.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1835 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-09-11Added option /SET channel_sync - if disabled irssi disables the channelTimo Sirainen
syncing entirely. This breaks /BAN and probably something else too. Just a temporarily kludge until I fix this properly (on demand /USERHOST at /BAN time, etc.). git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1786 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-11Some signed/unsigned warnings removed. Don't call fe_exec_init/deinit in win32Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1104 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-01Added/moved several "typedef struct _XXX XXX;" to common.h so thatTimo Sirainen
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
2000-12-09-querychans option for servers and ircnets which specifies how manyTimo Sirainen
channels to query in one line with MODE/WHO commands after joined to a number of channels. Default is 10 which works usually, with some very stupid servers (just found one) this has to be set to 1 however. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@981 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-12-05Server events: switched order of data and server parameters. it's nowTimo Sirainen
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-11-28Don't ever send more than 10 channels/line in mode/who requests. ThoughTimo Sirainen
usually the max. channels/server limit is 10 :) git-svn-id: http://svn.irssi.org/repos/irssi/trunk@895 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-11-28bugfixes with channel syncing.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@894 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-10-14Autorejoin when join temporarily fails because of netsplit is handledTimo Sirainen
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-09Moved ignore to core.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@725 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-08-26Lots of moving stuff around - hopefully I didn't break too much :)Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@632 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-07-30Bugfixes for non-irc server handling.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@550 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-06-18Changed option handling in /commands. Irssi will now complain aboutTimo Sirainen
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-01Some strange servers replied to MODE #chan1,#chan2 with "Cannot join channelTimo Sirainen
(illegal name)". IMHO this is not a logical reply from server.. fixed, anyway. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@265 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-05-04.. lots of changes ..Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@197 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-04-27Fixes for servers that replied to WHO #a,#b with 403 message.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@184 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-04-27joining to multiple channels at once crashedTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@182 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-04-26..adding new files..Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@171 dbcabf3a-b0e7-0310-adc4-f8d773084564