summaryrefslogtreecommitdiff
path: root/src/fe-common/core/fe-channels.c
AgeCommit message (Collapse)Author
2017-11-11Prevent a UAF error during the execution of some commandsLemonBoy
Some arguments were free'd first and then printed, leading to gibberish being output to screen or a crash. Found by Joseph Bisch. Closes: !GL17
2017-02-14Prevent some potential null-pointer deferences.LemonBoy
Spotted by our friend scan-build.
2016-06-21Merge pull request #498 from vague666/add_modify_functionsLemonBoy
Add modify to /channel, /server and /network
2016-06-21use TRUE/FALSE in if statements for gbooleanJari Matilainen
2016-06-19Fix minor nitsJari Matilainen
2016-06-18Add command_set_options for modify commands to allow completionJari Matilainen
2016-06-18Let ADD still work as modifyJari Matilainen
2016-06-18Add /channel modifyJari Matilainen
2016-05-13Improve UTF-8 handling in display_sorted_nicks().Xavier G
2016-05-13Fix indentation of display_sorted_nicks().Xavier G
This was done assuming an "indent with tab, align with spaces" approach. get_alignment also benefited from a minor indentation fix.
2015-11-09Strip the trailing whitespace from /join commands.LemonBoy
Fixes #99 for great good.
2015-04-07Change all strcmp() to g_strcmp0() to handle nulls gracefullydequis
Just a string replacement (but i did check every one of them) sed -i 's/strcmp(/g_strcmp0(/g' **/*.c
2014-09-11source cleanup: remove trailing whitespacesMichael Vetter
2009-02-27Move to a single /join function, avoiding confusion on "/join -window".Jilles Tjoelker
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-08Code Cleanup:Alexander Færøy
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
2008-11-28Allow storing multiple "other" prefixes such as +q and +a.Jilles Tjoelker
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
2007-06-16Revert r4549.Emanuele Giaquinta
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4555 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-06-10Make -window option of /join and /query accept an optional numeric argumentEmanuele Giaquinta
that specifies the refnum of the window to create the item in, bug #203. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4549 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-05-20Farewell glib-1.Emanuele Giaquinta
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4509 dbcabf3a-b0e7-0310-adc4-f8d773084564
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-20compile with glib1 againWouter Coekaerts
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4320 dbcabf3a-b0e7-0310-adc4-f8d773084564
2006-02-20sort nicks with custom prefix by the order defined in isupport in /NAMESWouter Coekaerts
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4247 dbcabf3a-b0e7-0310-adc4-f8d773084564
2004-10-16Fixed /join -invite -window bug if there is no inviteValentin Batz
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3320 dbcabf3a-b0e7-0310-adc4-f8d773084564
2004-09-13Make /JOIN -tag #channel and /JOIN #channel<space> switch to that channel ↵Wouter Coekaerts
(Bugs 13 and 93) git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3292 dbcabf3a-b0e7-0310-adc4-f8d773084564
2004-07-11s/ircnet/network/ - patch by Joost VunderinkTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3270 dbcabf3a-b0e7-0310-adc4-f8d773084564
2004-01-20isupport patch by David LeadbeaterTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3211 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-09-18/CYCLE !channel works now properly tooTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2929 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-09-18!channels weren't rejoined to correct window after reconnect/cycle.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2928 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-06-06/NAMES list isn't displayed on join when channel is joined because ofTimo Sirainen
/UPGRADE. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2848 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-06-06use signal_add_last("channel joined") for printing /NAMES listTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2847 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-06-06Added /SET show_names_on_join, /QUOTE NAMES #channel now prints the namesTimo Sirainen
list in raw format rather than just ignoring the reply and printing the nicks from cache. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2845 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-05-16Better !channel support - window items now have "visual_name" and channelsTimo Sirainen
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-04-09/JOIN #existing_channel jumps to the window where it's joined.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2660 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
2002-03-15/PART in SILC destroys the channel immediately, so we'll need to checkTimo Sirainen
that it's not destroyed when doing it in /CYCLE.. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2620 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-03-10/CYCLE tried to do /PART twice.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2555 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-03-10/CYCLE reason didn't workTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2552 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-15Some /NAMES fixesTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2441 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-13added user counts parameters to /NAMES header (not used by default), ↵Timo Sirainen
header/footer is printed with CLIENTCRAP, not CRAP level. patch by zinx@magenet.net git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2439 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-07Don't crash in /NAMES list if /SET names_max_width was too smallTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2398 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-20Added WINDOW_REC declaration to common.h, removed unneeded #include ↵Timo Sirainen
"servers.h" from fe-windows.h which broke several files, added the #include in them. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2272 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-09Better support for halfops, patch by yathen@web.deTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2228 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-20Added /FORMAT names_prefix to print prefix at the beginning of each /NAMESTimo Sirainen
list line. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2121 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-18Added new formats for ops/halfops/voices in /NAMES list.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2067 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-05/CHANNEL xxx - don't crash if not connected to server.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1973 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-07-26added destroy() function to WI_ITEM_REC. This fixes a potential crash whenTimo Sirainen
"window item destroy" signal was being used. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1655 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-07-17/NAMES -count now prints only the "total" line, not "users(#channel)" anymoreTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1641 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-07-14/NAMES -count: print only the Total xxx nicks lineTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1615 dbcabf3a-b0e7-0310-adc4-f8d773084564