summaryrefslogtreecommitdiff
path: root/src/cmd_topic.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd_topic.cpp')
-rw-r--r--src/cmd_topic.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd_topic.cpp b/src/cmd_topic.cpp
index 9de8637b4..463184de7 100644
--- a/src/cmd_topic.cpp
+++ b/src/cmd_topic.cpp
@@ -98,7 +98,7 @@ void cmd_topic::Handle (char **parameters, int pcnt, userrec *user)
{
if (IS_LOCAL(user))
{
- if ((Ptr) && (!has_channel(user,Ptr)))
+ if (!Ptr->HasUser(user))
{
WriteServ(user->fd,"442 %s %s :You're not on that channel!",user->nick, Ptr->name);
return;