]> jfr.im git - solanum.git/commitdiff
Don't allow opers to bypass can_create_channel check.
authorJilles Tjoelker <redacted>
Mon, 17 Dec 2007 23:17:25 +0000 (00:17 +0100)
committerJilles Tjoelker <redacted>
Mon, 17 Dec 2007 23:17:25 +0000 (00:17 +0100)
Modules need to do so themselves, if desired.

modules/core/m_join.c

index e65b042f83ca8b5a2891922c4b6c959bc9d1a644..43186ac553ebe5bb6a63a19286a6395794443b5f 100644 (file)
@@ -236,7 +236,7 @@ m_join(struct Client *client_p, struct Client *source_p, int parc, const char *p
 
                        call_hook(h_can_create_channel, &moduledata);
 
-                       if(moduledata.approved != 0 && !IsOper(source_p))
+                       if(moduledata.approved != 0)
                        {
                                sendto_one(source_p, form_str(moduledata.approved),
                                           me.name, source_p->name, name);