projects
/
ircu2.10.12-pk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added basic ssl support to ircu
[ircu2.10.12-pk.git]
/
ircd
/
m_invite.c
diff --git
a/ircd/m_invite.c
b/ircd/m_invite.c
index e5270f2e4e10cb00453043e944c6ced7bc74a200..2479753dd5f152f304cf6777d168b063c979ae68 100644
(file)
--- a/
ircd/m_invite.c
+++ b/
ircd/m_invite.c
@@
-142,12
+142,9
@@
int m_invite(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
if (is_silenced(sptr, acptr))
return 0;
if (is_silenced(sptr, acptr))
return 0;
- clean_channelname(parv[2]);
-
- if (!IsChannelPrefix(*parv[2]))
- return 0;
-
- if (!(chptr = FindChannel(parv[2]))) {
+ if (!IsChannelName(parv[2])
+ || !strIsIrcCh(parv[2])
+ || !(chptr = FindChannel(parv[2]))) {
send_reply(sptr, ERR_NOSUCHCHANNEL, parv[2]);
return 0;
}
send_reply(sptr, ERR_NOSUCHCHANNEL, parv[2]);
return 0;
}