- if (cl.length())
- user->SplitChanList(dest,cl);
- if (IS_OPER(user) && ServerInstance->Config->OperSpyWhois)
+ if (state == ServerConfig::SPYWHOIS_SINGLEMSG)
+ cl.append(dest->ChannelList(user, true));
+
+ user->SplitChanList(dest,cl);
+
+ if (state == ServerConfig::SPYWHOIS_SPLITMSG)