remove `hostmasks` section of README.md; it's mostly covered in `tokenisation`

This commit is contained in:
jesopo 2020-03-11 22:04:01 +00:00
parent eaf4c70db6
commit 0a7d0fa173
1 changed files with 1 additions and 18 deletions

View File

@ -25,7 +25,7 @@ where you don't expect them or not being where you expect them.
>>> line.source
'jess!~jess@hostname'
>>> line.hostmask
Hostmask(nick=n, user=u, host=h)
Hostmask(nickname=jess, username=~jess, hostname=hostname)
>>> line.command
'PRIVMSG'
>>> line.params
@ -39,23 +39,6 @@ Hostmask(nick=n, user=u, host=h)
'USER user 0 * :real name'
```
### hostmasks
```python
>>> line = irctokens.tokenise(
... "@id=123 :jess!~jess@hostname PRIVMSG #chat :hello there!")
>>>
>>> hostmask = irctokens.Hostmask(line.source)
>>> hostmask.nickname
'jess'
>>> hostmask.username
'~jess'
>>> hostmask.hostname
'hostname'
>>> str(hostmask)
'jess!~jess@hostname'
```
### stateful
below is an example of a fully socket-wise safe IRC client connection that will