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
Author: Perry Lorier <isomer@coders.net>
[ircu2.10.12-pk.git]
/
ircd
/
m_mode.c
diff --git
a/ircd/m_mode.c
b/ircd/m_mode.c
index ac2c81201f58b7804fa4d5ebfe7f3f6c268aea62..e3c6a21a4d9e35744732c1d131b8186cdd5fa6b0 100644
(file)
--- a/
ircd/m_mode.c
+++ b/
ircd/m_mode.c
@@
-111,7
+111,8
@@
m_mode(struct Client *cptr, struct Client *sptr, int parc, char *parv[])
clean_channelname(parv[1]);
clean_channelname(parv[1]);
- if (('#' != *parv[1] && '&' != *parv[1]) || !(chptr = FindChannel(parv[1])))
+ if (('#' != *parv[1] && '&' != *parv[1] && '+' != *parv[1]) ||
+ !(chptr = FindChannel(parv[1])))
return set_user_mode(cptr, sptr, parc, parv);
sptr->flags &= ~FLAGS_TS8;
return set_user_mode(cptr, sptr, parc, parv);
sptr->flags &= ~FLAGS_TS8;
@@
-165,7
+166,7
@@
ms_mode(struct Client *cptr, struct Client *sptr, int parc, char *parv[])
if (IsLocalChannel(parv[1]))
return 0;
if (IsLocalChannel(parv[1]))
return 0;
- if (
'#' != *parv[1]
|| !(chptr = FindChannel(parv[1])))
+ if (
('#' != *parv[1] && '+' != *parv[1])
|| !(chptr = FindChannel(parv[1])))
return set_user_mode(cptr, sptr, parc, parv);
sptr->flags &= ~FLAGS_TS8;
return set_user_mode(cptr, sptr, parc, parv);
sptr->flags &= ~FLAGS_TS8;
@@
-238,7
+239,7
@@
int m_mode(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
/*
* try to find the channel
*/
/*
* try to find the channel
*/
- if ('#' == *parv[1] || '&' == *parv[1])
+ if ('#' == *parv[1] || '&' == *parv[1]
|| '+' == *parv[1]
)
chptr = FindChannel(parv[1]);
if (!chptr)
return set_user_mode(cptr, sptr, parc, parv);
chptr = FindChannel(parv[1]);
if (!chptr)
return set_user_mode(cptr, sptr, parc, parv);
@@
-338,7
+339,7
@@
int ms_mode(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
/*
* try to find the channel
*/
/*
* try to find the channel
*/
- if ('#' == *parv[1] || '&' == *parv[1])
+ if ('#' == *parv[1] || '&' == *parv[1]
|| '+' == *parv[1]
)
chptr = FindChannel(parv[1]);
if (!chptr)
return set_user_mode(cptr, sptr, parc, parv);
chptr = FindChannel(parv[1]);
if (!chptr)
return set_user_mode(cptr, sptr, parc, parv);
@@
-439,7
+440,7
@@
int m_mode(struct Client *cptr, struct Client *sptr, int parc, char *parv[])
/*
* try to find the channel
*/
/*
* try to find the channel
*/
- if ('#' == *parv[1] || '&' == *parv[1])
+ if ('#' == *parv[1] || '&' == *parv[1]
|| '+' == *parv[1]
)
chptr = FindChannel(parv[1]);
if (!chptr)
return set_user_mode(cptr, sptr, parc, parv);
chptr = FindChannel(parv[1]);
if (!chptr)
return set_user_mode(cptr, sptr, parc, parv);