diff options
author | Summertime <Summertime@users.noreply.github.com> | 2018-08-30 21:24:24 +0930 |
---|---|---|
committer | Zoffix Znet <zoffixznet@users.noreply.github.com> | 2018-08-30 07:54:24 -0400 |
commit | ee85c330349621320c97acd53bc9c42d7ceaad45 (patch) | |
tree | a788518ff0ab1acd683f091413f53436a7a3ded2 /docs/01-basics.md | |
parent | 2ccaaa2534449b54a48b7eef27a3f5f26d75d66d (diff) |
send-cmd should prepend last arg with : only if /\s/ (#58)
* send-cmd should prepend last arg with : only if /\s/
ideally according to the IRC specifications, `:` is optional if the last argument to a command has no whitespace
This is to help alleviate some difficulties in zoffixznet/perl6-banbot#2
I am not completely sure all servers agree with the IRC specification on `:` however! Hopefully this is safe enough change to make
* send-cmd should prepend : if last arg has ^':'
* changing last-arg of send-cmd handling to support RFC
situations where a colon `:` needs to proceed the last argument:
* the last argument is the empty string `''`
* the last argument has a space `' '` in it
* the last argument begins with a colon `:`
Otherwise, other than PRIVMSG | NOTICE, some servers expect there to not be a colon to denote the last argument in some commands
Diffstat (limited to 'docs/01-basics.md')
0 files changed, 0 insertions, 0 deletions