]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/cmd_notice.cpp
Correctly use iterators and pointer to ucrec
[user/henk/code/inspircd.git] / src / cmd_notice.cpp
index 6dcab95534dc79dd7fd91d789d14429c883e2d60..58800ccc08352fed11fe65931f1507cf4fb1a4cb 100644 (file)
@@ -94,7 +94,7 @@ void cmd_notice::Handle (char **parameters, int pcnt, userrec *user)
                {
                        if (IS_LOCAL(user))
                        {
-                               if ((chan->binarymodes & CM_NOEXTERNAL) && (!has_channel(user,chan)))
+                               if ((chan->binarymodes & CM_NOEXTERNAL) && (!chan->HasUser(user)))
                                {
                                        WriteServ(user->fd,"404 %s %s :Cannot send to channel (no external messages)", user->nick, chan->name);
                                        return;