summaryrefslogtreecommitdiff
path: root/src/irc/core/irc-expandos.c
AgeCommit message (Collapse)Author
2015-10-02Set HOST_NAME_MAX to 255, if it's undefined.Alexander Færøy
Thanks to Jilles and dx. Fixes #309
2015-08-29Remove extra line breakkyak
How did this extra break cripple in here?
2015-08-29Use HOST_NAME_MAX for userhost and hostname expandoskyak
Use HOST_NAME_MAX instead of hardcoded 100 for userhost and hostname expandos.
2015-08-29Use "(none)" as fallback for hostname and userhost expandoskyak
Use "(none)" instead of "??" for hostname and userhost expandos when these can't be reliably detected.
2015-08-29In expando_hostname, set *free_ret to TRUEkyak
*free_ret must be set to TRUE in both cases, since we return some newly initialised memory
2015-08-26Clean up in hostname expando before returnkyak
Clean up the vector resulting from g_strsplit before returning from expando_hostname(). Also, use g_strdup() instead of g_strconcat() to return the pointer to hostname.
2015-07-19Add expandos for hostnamekyak
See http://bugs.irssi.org/index.php?do=details&task_id=829
2014-06-10Replace deprecated g_str[n]casecmp with g_ascii_str[n]cmp.David Hill
2011-02-10Ensure that expando_cumode_space() doesn't free unallocated memory when noJase Thew
prefix exists by conditionally allocating and marking to-be-freed the cumode string inside of expando_cumode(). (Bug #669) git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5203 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-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
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-06-10$X expando didn't check if server type was irc properly, and crashed.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2851 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-03-14$cumode and $cumode_space should do stuff only to IRC servers.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2611 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-20$cumode wasn't updated after receiving nick list, so with empty channels itTimo Sirainen
didn't contain @ immediately. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2521 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-30added $cumode_space expando. Like $cumode, but gives " " if there's no mode.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1947 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-14$usermode's "user mode changed" signal had wrong argument check (server vs.Timo Sirainen
window) so it didn't really detect mode changes. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1826 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-06-26Added $cumode expando which works like $P, but prints voices/halfops also.Timo Sirainen
Changed statusbar to use $cumode. Patch by fuchs. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1567 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-12-10added $usermode expandoTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@990 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-12-05Split expandos from special-vars.c to expandos.c. Added list of signalsTimo Sirainen
to each expando that can might change it's value. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@964 dbcabf3a-b0e7-0310-adc4-f8d773084564