Revision: 606
Author: arnetheduck
Date: 2006-05-21 01:53:55 -0700 (Sun, 21 May 2006)
ViewCVS: http://svn.sourceforge.net/dcplusplus/?rev=606&view=rev
Log Message:
-----------
This is nicer
Modified Paths:
--------------
dcplusplus/trunk/client/UserConnection.h
Modified: dcplusplus/trunk/client/UserConnection.h
===================================================================
--- dcplusplus/trunk/client/UserConnection.h 2006-05-21 08:45:42 UTC (rev 605)
+++ dcplusplus/trunk/client/UserConnection.h 2006-05-21 08:53:55 UTC (rev 606)
@@ -242,7 +242,7 @@
void error(const string& aError) { send("$Error " + aError + '|'); }
void listLen(const string& aLength) { send("$ListLen " + aLength + '|'); }
void maxedOut() { isSet(FLAG_NMDC) ? send("$MaxedOut|") : send(AdcCommand(AdcCommand::SEV_RECOVERABLE, AdcCommand::ERROR_SLOTS_FULL, "Slots full")); }
- void fileNotAvail(const std::string& msg = Util::emptyString) { isSet(FLAG_NMDC) ? send("$Error " + (msg.empty() ? FILE_NOT_AVAILABLE : msg) + "|") : send(AdcCommand(AdcCommand::SEV_RECOVERABLE, AdcCommand::ERROR_FILE_NOT_AVAILABLE, FILE_NOT_AVAILABLE)); }
+ void fileNotAvail(const std::string& msg = FILE_NOT_AVAILABLE) { isSet(FLAG_NMDC) ? send("$Error " + msg + "|") : send(AdcCommand(AdcCommand::SEV_RECOVERABLE, AdcCommand::ERROR_FILE_NOT_AVAILABLE, msg)); }
// ADC Stuff
void sup(const StringList& features) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|