The nickname of Users is now accessible.

This commit is contained in:
Aaron Weiss 2014-11-28 16:47:29 -05:00
parent 3701b6e569
commit ca3d52201d
2 changed files with 7 additions and 2 deletions

View file

@ -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

View file

@ -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