diff --git a/README.md b/README.md index beba0ed..9bffb25 100644 --- a/README.md +++ b/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