The nickname of Users is now accessible.
This commit is contained in:
parent
3701b6e569
commit
ca3d52201d
2 changed files with 7 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
|||
[package]
|
||||
|
||||
name = "irc"
|
||||
version = "0.1.0"
|
||||
version = "0.1.1"
|
||||
description = "A simple, thread-safe IRC client library."
|
||||
authors = ["Aaron Weiss <aaronweiss74@gmail.com>"]
|
||||
license = "Unlicense"
|
||||
|
@ -16,5 +16,5 @@ ssl = ["openssl"]
|
|||
|
||||
[dependencies.openssl]
|
||||
|
||||
openssl = "~0.0.2"
|
||||
openssl = "~0.2.0"
|
||||
optional = true
|
||||
|
|
|
@ -26,6 +26,11 @@ impl User {
|
|||
}
|
||||
}
|
||||
|
||||
/// Gets the nickname of the user.
|
||||
pub fn get_name(&self) -> &str {
|
||||
self.name[]
|
||||
}
|
||||
|
||||
/// Gets the user's access level.
|
||||
pub fn access_level(&self) -> AccessLevel {
|
||||
self.access_level
|
||||
|
|
Loading…
Reference in a new issue