lizmat / IRC-Client

Raku module for building IRC (Internet Relay Chat) clients
https://raku.land/zef:lizmat/IRC::Client
Artistic License 2.0
15 stars 8 forks source link

send-cmd should prepend last arg with : only if /\s/ #58

Closed Summertime closed 6 years ago

Summertime commented 6 years ago

edit: might be best to squash considering the self-bikeshedding I've done with this single line

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

Summertime commented 6 years ago

oh, there is a mistake, last arg beginning with : will need : prepended

zoffixznet commented 6 years ago

:+1: thanks