summaryrefslogtreecommitdiff
path: root/src/core/commands.c
AgeCommit message (Collapse)Author
2015-11-09Strip the trailing whitespace from /join commands.LemonBoy
Fixes #99 for great good.
2015-11-09Add an option to strip trailing whitespace when parsing commandsLemonBoy
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-07-06Check return values from some syscalls and warn if they failDavid Leadbeater
2014-06-10Replace deprecated g_str[n]casecmp with g_ascii_str[n]cmp.David Hill
2010-04-03deprecated glib strup/down fixes from exg.Alexander Færøy
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5138 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-01-20Fix 'defination' typo.Emanuele Giaquinta
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4996 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-03-15Revert unrelated changes slipped in r4774.Emanuele Giaquinta
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4775 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-03-15Fix typo.Emanuele Giaquinta
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4774 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-02-04Remove trailing whitespace.Emanuele Giaquinta
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4705 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-06-10When parsing a '@' option verify that the whole argument, rather than only theEmanuele Giaquinta
first character, is numeric. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4548 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
2005-07-17Fix /eval recursion crashing (debian/patches/04eval_recurse.dpatch by David ↵Wouter Coekaerts
Pashley) git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3865 dbcabf3a-b0e7-0310-adc4-f8d773084564
2005-03-06Fix command_unbind memleak by Toby Peterson (Bug 211)Wouter Coekaerts
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3713 dbcabf3a-b0e7-0310-adc4-f8d773084564
2003-10-11Changed some checks i_isspace() -> ' ' so that TAB isn't included in checks.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3130 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-11-17cmd_get_quoted_param() didn't work properly if it was used with last wordTimo Sirainen
(ie. like ended with '"', which broke eg. /dcc send "file") git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3005 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-11-11DCC send supports now queueing. Patch by Heikki Orsila <heikki@ee.tut.fi>,Timo Sirainen
although I did pretty heavy changes which hopefully didn't break it too badly :) New syntax: DCC SEND [-append | -prepend | flush | -rmtail | -rmhead] <nick> -<file> [<file> ...] git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2994 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-07-01cmd_get_quoted_params() fixesTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2862 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-06-07Empty lines can be now sent to /EXEC -interactive windows.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2849 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-16fixes for new signaling code.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2691 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-04-15Rewritten signal handling code - it wasn't supposed to come before 0.9 irssiTimo Sirainen
but it doesn't break much things and is needed for Qt port :) git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2682 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-13PARAM_FLAG_OPTCHAN_NAME check didn't work properly and it was alwaysTimo Sirainen
assumed, so * didn't work as channel parameter. also changed the how PARAM_FLAG_OPTCHAN_NAME was defined. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2435 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-07'-' option as last parameter didn't work (eg. /LAST -)Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2400 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-03Added PARAM_FLAG_OPTCHAN_NAME which is like PARAM_FLAG_OPTCHAN, but doesn'tTimo Sirainen
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-01added some pointer casting to get rid of warnings with some compilers.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2365 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-27toupper(), tolower(), isspace(), is..etc..() aren't safe with chars in someTimo Sirainen
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-20Added -before and -after options to /LASTLOG. You can also useTimo Sirainen
-<number> to specify both before and after values. Added special "#" option name to commands which specifies that -<number> parameter is allowed. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2331 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-11Whops, didn't actually fix the connection_lost :)Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2308 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-11When commands were being parsed, the currectly active server should have ↵Timo Sirainen
been referenced, but the code was accidentally in subcommand parser not in the main one.. Also, the connection_lost wasn't checked after parsing the command and might have caused a glib error. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2307 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-14Added reference counting to server record. At least now we don't accidentallyTimo Sirainen
use a destroyed server record when some /command disconnects the server (shouldn't happen really) or when irc_send_cmd() fails sending data to server and disconnects the server (I don't know if this ever happens, but if it does, it very well could have caused crashes) git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2243 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-29command_unbind() - don't crash if trying to unbind a command not registeredTimo Sirainen
in given module. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2166 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-20using signal_add() instead of signal_add_first() again. the ..first() wasn'tTimo Sirainen
really needed and it broke autoaway.pl script .. which is because /DISCONNECT and /UPGRADE commands destroy the server record, but it's still left in the signal's parameter. Guess I'll need to add reference counting to server record as well.. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2128 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-19grab the "send command" event with signal_add_first().Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2108 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-03Commands that accepeted * parameter as active channel didn't work properly -Timo Sirainen
active channel was used but the * wasn't removed from parameters. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1961 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-11-01server->ischannel(char *) -> server->ischannel(SERVER_REC *, char *). AddedTimo Sirainen
#define server_ischannel(server, data) and it's now used everywhere.. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1954 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-07-16command_runsub() - ignore multiple spaces between /COMMAND SUBCOMMANDTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1640 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-06-10Getting optional channel parameter was buggy - it used already free'd memoryTimo Sirainen
and assumed the command handler was given CHANNEL_REC even while it could have been any other WI_ITEM_REC ..though it used only the WI_ITEM_REC parts so it didn't really matter.. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1544 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-05-11cmd_get_params() crashed in some conditionsTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1489 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-05-11Moved PARAM_FLAG_OPTCHAN handling to core. Removed support for adding ownTimo Sirainen
command parameter parsers, it's probably useless now that opt.channels are in core. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1482 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-07When using a /command that has only subcommands, print the list of theTimo Sirainen
subcommands instead of just "unknown command" text. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1093 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-12-17Destroy all settings and commands used by modules when they're unloaded.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1001 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-12-04cmd_get_params() didn't work correctly if we didn't want any paramersTimo Sirainen
but only options. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@960 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-08-16/LAST - didn't work right.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@612 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-08-15/MSG -servertag crashed irssi.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@609 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-08-12WJOIN -> /JOIN -windowTimo Sirainen
WQUERY -> /QUERY -window. Added support for /QUERY -<server tag>. Added aliases for WJOIN and WQUERY to default config file. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@590 dbcabf3a-b0e7-0310-adc4-f8d773084564