dominikh changed the topic of #cinch to: The IRC Framework | Latest version: Cinch 2.2.7
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rickmasta has joined #cinch
Rickmast_ has joined #cinch
Rickmasta has quit [Ping timeout: 264 seconds]
Rickmast_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rickmasta has joined #cinch
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
head8debian has quit [Ping timeout: 250 seconds]
Rickmasta has joined #cinch
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
postmodern has joined #cinch
Rickmasta has joined #cinch
<leftylink> let's say the bot is voiced on ##leftylink (on let's say freenode), and someone sends a message to the channel +##leftylink to send a message to all voiced (and above) users. now, cinch sees that message just fine, there's a log line for it and everything
<leftylink> [2015/10/25 04:16:47.947] >> :leftylink!~leftylink@unaffiliated/leftylink PRIVMSG +##leftylink :!whatchannel
<dominikh> let me guess, it thinks the channel is named "+##leftylink"
<leftylink> however, when it comes time to look at the message, Message#channel is nil on that message, presumably because https://github.com/cinchrb/cinch/blob/master/lib/cinch/message.rb#L250 won't take it. I'm wondering... should it be accepted?
<dominikh> pretty sure that sending a message to "+##leftylink" is some 3rd party extension and not standard IRC. there's originally no mechanism of sending a message to just the voiced & above users in a channel.
<leftylink> yeah I don't see it in RFC 2812
<leftylink> or uh the earlier one
<leftylink> is it 1459
<dominikh> (by pretty sure I mean that I know)
<dominikh> so… I'm not really sure what to think of this
<leftylink> me neither. does the server expose that it is capable of doing such a thing, and does it even make sense for cinch to support such a thing even if it does
<leftylink> let's see
<dominikh> well, it's not using client capabilities to advertise that feature
dominikh2 has joined #cinch
dominikh2 has quit [Remote host closed the connection]
dominikh1 has joined #cinch
<dominikh> well, weechat seems to support it :P
dominikh1 has quit [Client Quit]
<leftylink> irssi's relatively fine with it, though it displays... a bit weirdly for me
<dominikh> I'll look into it.
<dominikh> would be nice to have a name for this protocol extension
<leftylink> yeah I'll sleep on it for a bit. as for the name... yeah see there's a single stack overflow answer http://stackoverflow.com/questions/13701298/ that says it's called wallmsg, but I can't find any corroborating statements for it so I am skeptical that is a widespread name
<dominikh> I don't think that is the correct name for it, as it refers to something else already.
<dominikh> how'd you find out about said feature?
<leftylink> hmm, kinda secondhand really, https://github.com/caitlin/cinch-resistancegame/issues/41 - who knows how that person found out about it
<dominikh> it should also be noted that it already requires permissions to use +#channel – at least it didn't work without op here
<dominikh> ah, issue says so. requires voice.
<leftylink> despite this, no skin off my back if cinch isn't going to get in the game of supporting this
<dominikh> oh I'll support it
<leftylink> for the purposes of the issue, the response to that issue could just be "it's a social problem - people shouldn't use +#playresistance, it's against the rules"
<dominikh> it's a bit of an annoying issue because it needs some design decisions, and because I want actual documentation for this feature. it wouldn't be particularly hard to implement -- code-wise
<dominikh> https://github.com/caitlin?tab=repositories look at all those games for Cinch!
<leftylink> heh. I have a few myself as well
<leftylink> it's a bit unfortunate because some networks have + as a standalone prefix in its own right, right? so there could be +channels. so would one have to try to check *two* characters? hmm...
<dominikh> not that hard to check two characters ;)
<dominikh> we have to, anyway. we have to check for valid status sigil + channel prefix, or channel prefix
<leftylink> http://www.irc.org/tech_docs/005.html says WALLVOICES but who knows if that is widespread
<dominikh> what worries me even more is that I remember a similar feature from quakenet, but don't recall if it uses the same syntax
<dominikh> it's called STATUSMSG
<dominikh> it's actually advertised in the ISUPPORT line (STATUSMSG=@+)
<dominikh> thanks.
<leftylink> is ISUPPORT only sent on connect or can I see it somewhere after the fact
<dominikh> only on connect
<leftylink> ok I see STATUSMSG in freenode's 005
<leftylink> yeah ok
<leftylink> trying to teach myself to fish, as it were
<dominikh> don't fall in the water
<dominikh> and here the annoying questions begin. Should Message#reply reply to #channel or +#channel, if the message was sent to +#channel?
<leftylink> I think I might argue in favor of +#channel as it seems more consistent with the behavior of Message#reply with PMs and channel messages
<dominikh> Yeah.
<leftylink> another interesting question is whether Message#channel should be #channel or +#channel but it's not like +#channel really exists in its own right, so maybe that would be #channel . does it sound a bit inconsistent... I'm unsure
<dominikh> I wonder if it's okay to have a method called Message#statusmsg that returns the class of people that were addressed (:all, :voice, :op, ...) – #statusmsg is a bit of a shabby name, but I can't think of a better one right now
<dominikh> Message#channel will return Channel("#channel") – otherwise plenty of things would break – or need special handling.
<dominikh> the channel is, after all, still #channel. the + and @ is separate from that
<leftylink> those who are addressed? addressees, of course! (I might be saying this in jest)
<leftylink> visible_to
<leftylink> eh...
<dominikh> issue with #statusmsg is that it only applies to messages sent to channels, whereas Message applies to any and all IRC messages (mode changes, parts, etc) – the method would only apply to a subset
<dominikh> the name needs to reflect that
<dominikh> #statusmsg_mode maybe
<dominikh> okay, implementing the new #reply semantics is a bit more annoying than I anticipated
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<leftylink> ... oh yeah I can see where that might be weird...
<leftylink> all these obscure features
<leftylink> that you might not use yourself
<leftylink> where do you get the motivation to make them work
<dominikh> I… don't know.
<dominikh> "that you might not use yourself": I don't use Cinch at all anymore ;)
<dominikh> http://sprunge.us/LTFc first iteration of the patch. only makes Message#channel and Message#reply behave as expected. later on I'll need to add new APIs to Channel so that given a Channel("#foo"), you can send a message to @#foo
<dominikh> and I'm considering not adding the Channel APIs for now; or I won't fix the issue for a couple of days so I can think about it
<leftylink> many thanks. I'll go and apply it and test it
<dominikh> oh yeah, that patch is totally untested as of yet.
<dominikh> it might not even syntax check
<leftylink> well, Message#channel and Message#reply are what I expect for ##leftylink, +##leftylink, and privmsg to bot
<leftylink> so this is a good sign
<leftylink> sometimes I wonder "what if I could test this in some fashion other than manually". but I know, I know, you've expressed your feelings on that many times in this channel
<leftylink> ... in fact I just ran existing tests and PluginTest has various errors. heh
<leftylink> maybe soon I'll see if I can even do anything on that front or if it's as bad as you say
<leftylink> I think sometimes I have to see the badness for myself to understand
<leftylink> I wonder if many others have embarked on similar foolhardy quests
<leftylink> only to return home with no glory
<dominikh> some have tried to test plugins. nobody really tries to add tests for Cinch itself, but the two suffer from similar issues.
<dominikh> if there'll ever be a Cinch 3, it'll have tests ;)
<dominikh> I'll finalise the patch after I got some sleep. nn.
<leftylink> hmm I wonder if http://www.irc.org/tech_docs/draft-brocklesby-irc-isupport-03.txt is the latest document on isupport. even if it is though ircds are still going above and beyond... because I notice that that STATUSMSG spec only specifies NOTICE and says nothing of PRIVMSG to @#channel . I wonder if that actually matters in practice though
<leftylink> (meaning, is there any ircd that advertises STATUSMSG and then supports NOTICE... and then doesn't support PRIVMSG)
<leftylink> not in the ones I've come across, but small sample size from me. not something I'm going to think too hard about though
postmodern has quit [Quit: Leaving]
head8debian has joined #cinch
head8debian has joined #cinch
Rickmasta has joined #cinch
Rickmast_ has joined #cinch
Rickmasta has quit [Ping timeout: 250 seconds]
<dominikh> leftylink: yeah, some will probably only permit it with NOTICE. but that's not really a problem for Cinch, we'll just support it for both.
Rickmast_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rickmasta has joined #cinch
Mark__ has joined #cinch
Mark__ has left #cinch [#cinch]
Azure has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Azure has joined #cinch
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rickmasta has joined #cinch
Rickmasta has quit [Read error: Connection reset by peer]
Rickmasta has joined #cinch
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rickmasta has joined #cinch