Added account-tag to capabilities request API.
This commit is contained in:
parent
6a7786b92a
commit
5d6fd1031d
1 changed files with 4 additions and 1 deletions
|
@ -14,6 +14,8 @@ pub enum Capability {
|
|||
ExtendedJoin,
|
||||
/// [monitor](http://ircv3.net/specs/core/monitor-3.2.html)
|
||||
Monitor,
|
||||
/// [account-tag](http://ircv3.net/specs/extensions/account-tag-3.2.html)
|
||||
AccountTag,
|
||||
}
|
||||
|
||||
/// List of IRCv3 capability negotiation versions.
|
||||
|
@ -32,6 +34,7 @@ impl AsRef<str> for Capability {
|
|||
Capability::AwayNotify => "away-notify",
|
||||
Capability::ExtendedJoin => "extended-join",
|
||||
Capability::Monitor => "monitor",
|
||||
Capability::AccountTag => "account-tag",
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -47,6 +50,6 @@ mod test {
|
|||
assert_eq!(AwayNotify.as_ref(), "away-notify");
|
||||
assert_eq!(ExtendedJoin.as_ref(), "extended-join");
|
||||
assert_eq!(Monitor.as_ref(), "monitor");
|
||||
|
||||
assert_eq!(AccountTag.as_ref(), "account-tag");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue