diff --git a/Cargo.toml b/Cargo.toml index 3c8a2a9..a2b510c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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 "] license = "Unlicense" @@ -16,5 +16,5 @@ ssl = ["openssl"] [dependencies.openssl] -openssl = "~0.0.2" +openssl = "~0.2.0" optional = true diff --git a/src/data/user.rs b/src/data/user.rs index 9c984f1..a6d773b 100644 --- a/src/data/user.rs +++ b/src/data/user.rs @@ -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