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 gnutls backend and moved backend code into new files
[ircu2.10.12-pk.git]
/
ircd
/
m_join.c
diff --git
a/ircd/m_join.c
b/ircd/m_join.c
index 33d857fa9ad67a18893e54539522b235baea8cfa..e0049667ca8a1eb691f603312e453ad0bb8688b6 100644
(file)
--- a/
ircd/m_join.c
+++ b/
ircd/m_join.c
@@
-158,7
+158,7
@@
int m_join(struct Client *cptr, struct Client *sptr, int parc, char *parv[])
if (!(chptr = FindChannel(name))) {
if (((name[0] == '&') && !feature_bool(FEAT_LOCAL_CHANNELS))
if (!(chptr = FindChannel(name))) {
if (((name[0] == '&') && !feature_bool(FEAT_LOCAL_CHANNELS))
- || strlen(name) >
=
IRCD_MIN(CHANNELLEN, feature_int(FEAT_CHANNELLEN))) {
+ || strlen(name) > IRCD_MIN(CHANNELLEN, feature_int(FEAT_CHANNELLEN))) {
send_reply(sptr, ERR_NOSUCHCHANNEL, name);
continue;
}
send_reply(sptr, ERR_NOSUCHCHANNEL, name);
continue;
}
@@
-239,7
+239,17
@@
int m_join(struct Client *cptr, struct Client *sptr, int parc, char *parv[])
/* Is there some reason the user may not join? */
if (err) {
/* Is there some reason the user may not join? */
if (err) {
- send_reply(sptr, err, chptr->chname);
+ switch(err) {
+ case ERR_NEEDREGGEDNICK:
+ send_reply(sptr,
+ ERR_NEEDREGGEDNICK,
+ chptr->chname,
+ feature_str(FEAT_URLREG));
+ break;
+ default:
+ send_reply(sptr, err, chptr->chname);
+ break;
+ }
continue;
}
continue;
}