zirc icon indicating copy to clipboard operation
zirc copied to clipboard

Member, Channel and Server data classes

Open itslukej opened this issue 9 years ago • 8 comments

Example

>>> event.author.account
"eclipse"
>>> event.author.realname
"why does somebody not know how to flush the toilet"
>>> event.channel.topic
"zIRC  - IRC Protocol client library | https://github.com/itslukej/zirc | CHIPOTLE SOUTHWEST SAUCE"
>>> event.server.nicklen
16

itslukej avatar Oct 26 '16 20:10 itslukej

This may require a full lib rewrite, so I could probably do #6 at the same time.

itslukej avatar Oct 26 '16 20:10 itslukej

Channel topic shouldn't be hard to implement, we just need to parse the TOPIC command, account is simple too we just need extended-join (to parse account on join), and multi-prefix

wolfy1339 avatar Nov 01 '16 16:11 wolfy1339

Actually, we can use account-tag (IRCv3.2) to get the event author's account using message tags

wolfy1339 avatar Nov 02 '16 20:11 wolfy1339

hmm.. Do popular IRC servers even support v3.2?

itslukej avatar Nov 02 '16 20:11 itslukej

freenode barely supports v3.1. Any server that runs a fairly recent version of charybdis has IRCv3.2 support

wolfy1339 avatar Nov 03 '16 04:11 wolfy1339

I was thinking about the server class, a lot if things we can already get from the MOTD

wolfy1339 avatar Dec 11 '16 05:12 wolfy1339

Account tracking can be done with account-notify, extended-join and WHOX. Checking for WHOX support would require parsing/storing 005 so it would make sense to create the server class before trying to implement account tracking.

BradleyShaw avatar Dec 21 '16 21:12 BradleyShaw

event.author should be incorporated into event.source

wolfy1339 avatar Jun 20 '17 16:06 wolfy1339