summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfrostycoolslug <frostycoolslug@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-05 23:36:13 +0000
committerfrostycoolslug <frostycoolslug@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-05 23:36:13 +0000
commit01e9205f21ab3bc0a12302005e9ce2439f802bb0 (patch)
tree3491fef17ef5ec5940ca1cbfbeb2fe1909664a25
parentef9044d3d065e77192d117cce406d6855aace96a (diff)
Fixed minotr bug in handle_invite which caused only people in +i channels to be able to invite.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@397 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/inspircd.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index 36dd5963e..3641885c3 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -3301,11 +3301,10 @@ void handle_invite(char **parameters, int pcnt, userrec *user)
WriteServ(user->fd,"482 %s %s :You must be at least a half-operator to change modes on this channel",user->nick, c->name);
return;
}
-
- u->InviteTo(c->name);
- WriteFrom(u->fd,user,"INVITE %s :%s",u->nick,c->name);
- WriteServ(user->fd,"341 %s %s %s",user->nick,u->nick,c->name);
}
+ u->InviteTo(c->name);
+ WriteFrom(u->fd,user,"INVITE %s :%s",u->nick,c->name);
+ WriteServ(user->fd,"341 %s %s %s",user->nick,u->nick,c->name);
}
void handle_topic(char **parameters, int pcnt, userrec *user)