commands: /ignore, /unignore
authorFederico Ruggi <federico@federico.cc>
Mon, 1 Aug 2016 15:19:12 +0000 (17:19 +0200)
committerAndrey Petrov <shazow@gmail.com>
Mon, 1 Aug 2016 15:19:12 +0000 (11:19 -0400)
commit58e1cb60bdea6033fa78f6778ee187bf013e7e62
treef28dea863c11666bccdfe62355376c9aea484735
parent2abe368022e2b8ca55e168ee8d366dd9081ed922
commands: /ignore, /unignore

#154
* Add `/ignore`/`/unignore` commands
* Move set to common package, use set for ignores
* `chat/set.go` is now `common/set.go`
* use `*IdSet` as type for ignored list for users
* remove `IsIgnoring` and `IgnoredNames` user functions, so to use directly `IdSet` methods
* refactor code accordingly
chat/command.go
chat/message/user.go
chat/room.go
chat/room_test.go
chat/set_test.go
common/set.go [moved from chat/set.go with 67% similarity]