mirror of https://github.com/jesopo/irctokens
remove `hostmasks` section of README.md; it's mostly covered in `tokenisation`
This commit is contained in:
parent
eaf4c70db6
commit
0a7d0fa173
19
README.md
19
README.md
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue