diff options
| author | 2014-04-16 13:20:39 +0200 | |
|---|---|---|
| committer | 2014-04-16 13:20:39 +0200 | |
| commit | 67e0e32b86885df705a92cdc971a6085c4a7c1ba (patch) | |
| tree | 1f3ba6b2d1d4f240c287d8ff11d30e98561e7adb /src/modules/m_spanningtree/fjoin.cpp | |
| parent | m_spanningtree Throw an exception on protocol violations instead of returning... (diff) | |
| download | inspircd++-67e0e32b86885df705a92cdc971a6085c4a7c1ba.tar.gz inspircd++-67e0e32b86885df705a92cdc971a6085c4a7c1ba.tar.bz2 inspircd++-67e0e32b86885df705a92cdc971a6085c4a7c1ba.zip | |
m_spanningtree Add ServerCommand::ExtractTS() to convert string to raw TS
Throws a ProtocolException if the input is invalid
Diffstat (limited to 'src/modules/m_spanningtree/fjoin.cpp')
| -rw-r--r-- | src/modules/m_spanningtree/fjoin.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/modules/m_spanningtree/fjoin.cpp b/src/modules/m_spanningtree/fjoin.cpp index ec7932766..26c3413f9 100644 --- a/src/modules/m_spanningtree/fjoin.cpp +++ b/src/modules/m_spanningtree/fjoin.cpp @@ -69,13 +69,7 @@ CmdResult CommandFJoin::Handle(User* srcuser, std::vector<std::string>& params) * */ - time_t TS = ConvToInt(params[1]); - if (!TS) - { - ServerInstance->Logs->Log(MODNAME, LOG_DEFAULT, "*** BUG? *** TS of 0 sent to FJOIN. Are some services authors smoking craq, or is it 1970 again?. Dropped."); - ServerInstance->SNO->WriteToSnoMask('d', "WARNING: The server %s is sending FJOIN with a TS of zero. Total craq. Command was dropped.", srcuser->server->GetName().c_str()); - return CMD_INVALID; - } + time_t TS = ServerCommand::ExtractTS(params[1]); const std::string& channel = params[0]; Channel* chan = ServerInstance->FindChan(channel); |
