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
Fixed m_relay altchan check
[ircu2.10.12-pk.git]
/
ircd
/
m_relay.c
diff --git
a/ircd/m_relay.c
b/ircd/m_relay.c
index fc8e1cd4ce4bb356eefa65d36b1a4e2c91563c28..7d8a6e1abd2730bf0f69b9ba5c7ae64a5558fdce 100644
(file)
--- a/
ircd/m_relay.c
+++ b/
ircd/m_relay.c
@@
-230,7
+230,8
@@
signed int ms_relay(struct Client* cptr, struct Client* sptr, signed int parc, c
struct Client *acptr;
struct Channel *chptr;
if(acptr = findNUser(parv[1])) {
struct Client *acptr;
struct Channel *chptr;
if(acptr = findNUser(parv[1])) {
- if(chptr = FindChannel(parv[3]) && chptr->mode.altchan &&
+ if(IsChannelName(parv[3]) && strIsIrcCh(parv[3]) &&
+ (chptr = FindChannel(parv[3])) && chptr->mode.altchan &&
IsChannelName(chptr->mode.altchan) && strIsIrcCh(chptr->mode.altchan)) {
mode_a_check_altchan(acptr,chptr->mode.altchan);
}
IsChannelName(chptr->mode.altchan) && strIsIrcCh(chptr->mode.altchan)) {
mode_a_check_altchan(acptr,chptr->mode.altchan);
}