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
Rip out clean_channelname() and reject invalid names where appropriate.
[ircu2.10.12-pk.git]
/
ircd
/
m_join.c
diff --git
a/ircd/m_join.c
b/ircd/m_join.c
index f230beb07219d0c0656ff97de23e373dd2c81fc8..2a58a37fa1aa423432400203e614bafee6982b36 100644
(file)
--- a/
ircd/m_join.c
+++ b/
ircd/m_join.c
@@
-135,8
+135,7
@@
int m_join(struct Client *cptr, struct Client *sptr, int parc, char *parv[])
if (key && !key[0])
key = 0;
- clean_channelname(name);
- if (!IsChannelName(name))
+ if (!IsChannelName(name) || !strIsIrcCh(name))
{
/* bad channel name */
send_reply(sptr, ERR_NOSUCHCHANNEL, name);