summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cmd_topic.cpp2
-rw-r--r--src/modules.cpp5
2 files changed, 1 insertions, 6 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;
diff --git a/src/modules.cpp b/src/modules.cpp
index d7525a519..f5129c837 100644
--- a/src/modules.cpp
+++ b/src/modules.cpp
@@ -631,11 +631,6 @@ std::string Server::ChanMode(userrec* User, chanrec* Chan)
return cmode(User,Chan);
}
-bool Server::IsOnChannel(userrec* User, chanrec* Chan)
-{
- return has_channel(User,Chan);
-}
-
std::string Server::GetServerName()
{
return Config->ServerName;