diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-05-04 16:51:02 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-05-04 16:51:02 +0000 |
commit | 96faf2a7516a5b9dba253cac59398b17330b34fd (patch) | |
tree | d646df85b863cba9ccddaf79acc39b739316c879 /src | |
parent | f4ec9aaf370f5fb895b7cad6d5cd849cc28b699d (diff) |
Add MODE nag to debug snomask +d
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6878 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_spanningtree/treesocket2.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/modules/m_spanningtree/treesocket2.cpp b/src/modules/m_spanningtree/treesocket2.cpp index 4b4cdff8e..7a24ff84b 100644 --- a/src/modules/m_spanningtree/treesocket2.cpp +++ b/src/modules/m_spanningtree/treesocket2.cpp @@ -1147,6 +1147,23 @@ bool TreeSocket::ProcessLine(std::string &line) route_back_again->SetPingFlag(); } + if ((command == "MODE") && (params.size() >= 2)) + { + chanrec* channel = Instance->FindChan(params[0]); + if (channel) + { + userrec* x = Instance->FindNick(prefix); + if (x) + { + Instance->Log(DEFAULT, + "WARNING: I revceived modes '%s' from another server '%s'. This is not compliant with InspIRCd. Please check that server for bugs.", + params[1].c_str(), x->server); + Instance->SNO->WriteToSnoMask('d', "WARNING: The server %s is sending nonstandard modes: '%s MODE %s' and may cause desyncs.", + x->server, x->nick, params[1].c_str()); + } + } + } + if (command == "SVSMODE") { /* Services expects us to implement |