about summary refs log tree commit diff
path: root/command.c (follow)
Commit message (Collapse)AuthorAge
* Use CS command for paramless /op and /voiceJune McEnroe2021-07-13
| | | | Should match the actual /cs command.
* Save invited channel for /joinJune McEnroe2021-07-02
|
* Use NS and CS server aliasesJune McEnroe2021-06-21
| | | | | | I think I didn't use these originally because they were misconfigured on tilde.chat, but they work now, and supposedly server aliases should be more secure/reliable.
* Match windows by substring in /windowJune McEnroe2021-06-17
| | | | | This could just iterate over idNames instead, but using complete means more recently used windows will match first.
* /exec without controlling terminalKlemens Nanni2021-06-13
| | | | | | | | | | | Otherwise "/exec sh </dev/tty" takes over and catgirl must effectively be killed to stop the madness; with this diff: catgirl input| /exec sh </dev/tty catgirl output| /bin/sh: cannot open /dev/tty: Device not configured catgirl output| Process exits with status 1 Do the same for `-C/Copy', `-N/notify' and `-O/open' alike.
* List windows with /window 1.8June McEnroe2021-05-28
| | | | Reuse the /window command to preserve /wi abbreviation.
* Improve missing param behavior for /msg, /whois, /ns, /csJune McEnroe2021-05-28
|
* Set id color from completion in /msgJune McEnroe2021-04-16
| | | | | In the same way that /query copies the id color from completion. Also make both first check that a color isn't already set.
* Show where too-long-messages will be automatically splitJune McEnroe2021-03-17
|
* Allow multi-line /me and split long /me messagesJune McEnroe2021-03-14
| | | | /me shouldn't behave differently from a regular message.
* Fix /help LESS setting for updated manualJune McEnroe2021-02-08
| | | | | The new reference to the COMMANDS section at the beginning of the manual would get matched instead.
* Fix /unignore commandJune McEnroe2021-01-23
| | | | Yikes, copy-paste fail.
* Separate kiosk mode from restrict modeJune McEnroe2021-01-23
| | | | | | | | | | | Restrict mode will focus on sandboxing, while kiosk will continue to restrict IRC access through a public kiosk. Kiosk mode without restrict mode allows execution of man 1 catgirl with /help, assuming external sandboxing. The /list and /part commands are also added to the list of disabled commands in kiosk mode, since they are pointless without access to /join.
* Add -I highlight option and /highlightJune McEnroe2021-01-16
|
* Rename ignore code to filterJune McEnroe2021-01-16
|
* Use execl rather than execlp for shellJune McEnroe2021-01-07
| | | | SHELL is an absolute path.
* Split ignore fields to avoid over-eager * matchingJune McEnroe2021-01-01
| | | | | | | | | | Split ignore fields and match each separately to avoid an early * eagerly matching across several fields. For example, "* JOIN * *" should not match messages which happen to contain the word "JOIN" followed by two other words. Ignore capacity is reduced to 64 to keep the size of the array the same. I don't think it's an issue.
* Factor out reply count checking and decrementingJune McEnroe2020-12-30
|
* Add /whowasJune McEnroe2020-12-30
|
* Show setnames like nick changesJune McEnroe2020-12-30
|
* Add /setname commandJune McEnroe2020-12-29
| | | | | | I'm not sure about that replies check in handleStandardReply. If more of those are added the reply counter system will definitely need refactoring.
* Double up /help for server helpJune McEnroe2020-10-02
| | | | | | While the automatic search via LESS is neat, I don't think it's very useful. Just always open the manual to the COMMANDS section, and fix it to append to LESS rather than replace it.
* Use WHO for /opsJune McEnroe2020-09-30
| | | | Accumulate names in a buffer and show away status.
* Add /ops commandJune McEnroe2020-09-30
| | | | | | It's pretty awkward with large channels since NAMES isn't sorted by prefixes or anything... But having it accumulate names across many replies would require more reworking.
* Allow 2-param form of /whois, count comma-separated nicksJune McEnroe2020-09-18
| | | | | I do not feel like documenting the 2-param form of /whois because it is weird, but it should work for those who already know about it.
* Say "OpenSSL" in additional permission noticesJune McEnroe2020-08-04
| | | | LibreSSL is "a modified version of that library".
* Bump ParamCap to 254June McEnroe2020-06-24
| | | | | | | | | | | | Apparently IRCds have decided that the 15-parameter limit doesn't matter anymore. 254 is the maximum number of single-byte parameters (following a single-byte command) which fit in a 512-byte CR-LF-terminated line. When everyone decides that the 512-byte line length limit doesn't matter either, I will delete my software and people can use some JavaScript garbage instead. This makes struct Message 2080 bytes, but there's only ever one or two of them around at once. Avoid passing it by value to handle.
* Add null terminator to modes in channelListModeJune McEnroe2020-06-15
| | | | | Otherwise passing more than 13 parameters reads past the end of the array.
* Add additional permission for linking with LibreSSLJune McEnroe2020-06-08
| | | | https://www.gnu.org/licenses/gpl-faq.en.html#GPLIncompatibleLibs
* Voice, devoice self on /voice, /devoice with no paramsJune McEnroe2020-04-06
|
* Op, deop self on /op, /deop without paramsJune McEnroe2020-04-06
|
* Use gnu-case-range and gnu-conditional-omitted-operand extensionsJune McEnroe2020-04-03
| | | | | I'm sad to do this but I just can't stand writing (foo ? foo : bar) anymore.
* Only treat /open param as count if single digitJune McEnroe2020-04-03
|
* Add /ignore message filtering patternsJune McEnroe2020-03-31
|
* Add text macrosJune McEnroe2020-03-30
|
* Add /o alias for /openJune McEnroe2020-03-30
| | | | I can't live without it.
* Add /op, /deop, /voice, /devoiceJune McEnroe2020-03-29
| | | | | This collides with using /o for /open which I'm sad about, but I think these commands should exist...
* Track MODE in repliesJune McEnroe2020-03-23
|
* Fix non-multiline command newline handlingJune McEnroe2020-03-23
|
* Allow commands to take multiline inputJune McEnroe2020-03-23
|
* Assume worst case for unknown user and host in splitMessageJune McEnroe2020-03-23
| | | | | | The default USERLEN of 9 doesn't have a great source, the RFC only says that nicks are length 9, so my assumption is that usernames are not longer.
* Implement message splittingJune McEnroe2020-03-22
|
* Handle empty input directly in commandJune McEnroe2020-03-22
|
* Add /sayJune McEnroe2020-03-22
|
* Prevent entering commands in <debug> if restrictedJune McEnroe2020-03-02
| | | | | | Because the <debug> ID always exists, it's possible to create a window for it even while restricted with "/window <debug>" and try to enter commands there.
* Add /mode, /except, /invex and handle lists repliesJune McEnroe2020-02-25
|
* Just use "b" to query ban listJune McEnroe2020-02-20
|
* Add /ban, /unban and handle ban list repliesJune McEnroe2020-02-19
|
* Various small cleanupsJune McEnroe2020-02-16
| | | | Haven't really gone through ui.c yet.
* Replace small integers in size_t with uintJune McEnroe2020-02-15
|