aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBond-009 <[email protected]>2017-07-21 20:08:34 +0200
committeralex <[email protected]>2017-07-21 20:08:34 +0200
commitfd89d09d3397eba21d1b454d3b6155ba9c3a829e (patch)
tree5db228036f9e5b2fcc532212a2fabd2bf81122cc /src
parentUtilise the newly stabilised loop-with-break-value (diff)
downloadserenity-fd89d09d3397eba21d1b454d3b6155ba9c3a829e.tar.xz
serenity-fd89d09d3397eba21d1b454d3b6155ba9c3a829e.zip
Fix the tests (#129)
Diffstat (limited to 'src')
-rw-r--r--src/model/channel/guild_channel.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/model/channel/guild_channel.rs b/src/model/channel/guild_channel.rs
index 0217231..678e601 100644
--- a/src/model/channel/guild_channel.rs
+++ b/src/model/channel/guild_channel.rs
@@ -386,7 +386,7 @@ impl GuildChannel {
#[cfg(feature="utils")]
#[inline]
pub fn is_nsfw(&self) -> bool {
- self.nsfw || self.name == "nsfw" || self.kind == ChannelType::Text && serenity_utils::is_nsfw(&self.name)
+ self.kind == ChannelType::Text && (self.nsfw || serenity_utils::is_nsfw(&self.name))
}
/// Gets a message from the channel.