+ user->WriteNumeric(998, "%s :DCCALLOW [<+|->nick [time]] [list] [help]", user->nick.c_str());
+ user->WriteNumeric(998, "%s :You may allow DCCs from specific users by specifying a", user->nick.c_str());
+ user->WriteNumeric(998, "%s :DCC allow for the user you want to receive DCCs from.", user->nick.c_str());
+ user->WriteNumeric(998, "%s :For example, to allow the user Brain to send you inspircd.exe", user->nick.c_str());
+ user->WriteNumeric(998, "%s :you would type:", user->nick.c_str());
+ user->WriteNumeric(998, "%s :/DCCALLOW +Brain", user->nick.c_str());
+ user->WriteNumeric(998, "%s :Brain would then be able to send you files. They would have to", user->nick.c_str());
+ user->WriteNumeric(998, "%s :resend the file again if the server gave them an error message", user->nick.c_str());
+ user->WriteNumeric(998, "%s :before you added them to your DCCALLOW list.", user->nick.c_str());
+ user->WriteNumeric(998, "%s :DCCALLOW entries will be temporary by default, if you want to add", user->nick.c_str());
+ user->WriteNumeric(998, "%s :them to your DCCALLOW list until you leave IRC, type:", user->nick.c_str());
+ user->WriteNumeric(998, "%s :/DCCALLOW +Brain 0", user->nick.c_str());
+ user->WriteNumeric(998, "%s :To remove the user from your DCCALLOW list, type:", user->nick.c_str());
+ user->WriteNumeric(998, "%s :/DCCALLOW -Brain", user->nick.c_str());
+ user->WriteNumeric(998, "%s :To see the users in your DCCALLOW list, type:", user->nick.c_str());
+ user->WriteNumeric(998, "%s :/DCCALLOW LIST", user->nick.c_str());
+ user->WriteNumeric(998, "%s :NOTE: If the user leaves IRC or changes their nickname", user->nick.c_str());
+ user->WriteNumeric(998, "%s : they will be removed from your DCCALLOW list.", user->nick.c_str());
+ user->WriteNumeric(998, "%s : your DCCALLOW list will be deleted when you leave IRC.", user->nick.c_str());
+ user->WriteNumeric(999, "%s :End of DCCALLOW HELP", user->nick.c_str());
+ }
+
+ void DisplayDCCAllowList(User* user)
+ {
+ // display current DCCALLOW list
+ user->WriteNumeric(990, "%s :Users on your DCCALLOW list:", user->nick.c_str());
+
+ dl = ext->get(user);
+ if (dl)
+ {
+ for (dccallowlist::const_iterator c = dl->begin(); c != dl->end(); ++c)
+ {
+ user->WriteNumeric(991, "%s %s :%s (%s)", user->nick.c_str(), user->nick.c_str(), c->nickname.c_str(), c->hostmask.c_str());
+ }
+ }
+
+ user->WriteNumeric(992, "%s :End of DCCALLOW list", user->nick.c_str());