Преглед изворни кода

* Clean out leftover language defines

svn: 3857
Bryan Drewery пре 18 година
родитељ
комит
2ad69af0d1
5 измењених фајлова са 0 додато и 167 уклоњено
  1. 0 1
      src/common.h
  2. 0 102
      src/lang.h
  3. 0 2
      src/mod/console.mod/console.h
  4. 0 15
      src/mod/ctcp.mod/ctcp.h
  5. 0 47
      src/mod/transfer.mod/transfer.h

+ 0 - 1
src/common.h

@@ -36,7 +36,6 @@
 #ifdef HAVE_STRINGS_H
 #  include <strings.h>
 #endif
-#include "lang.h"
 
 
 #ifdef WIN32

+ 0 - 102
src/lang.h

@@ -1,102 +0,0 @@
-/*
- * lang.h
- *   Conversion definitions for language support
- *
- */
-#ifndef _EGG_LANG_H
-#define _EGG_LANG_H
-
-
-
-
-#define IGN_NONE		"No ignores"
-
-/* Messages referring to bots
- */
-#define BOT_USERAWAY		"is away"
-#define BOT_MSGDIE		"Bot shut down beginning...."
-/* was: BOT_OUTDATEDWHOM - 0xb1e */
-/* was: BOT_BOGUSLINK2 - 0xb2a */
-#define BOT_DISCONNLEAF		"Disconnected left"
-#define BOT_LINKEDTO		"Linked to"
-#define BOT_YOUREALEAF		"You are supposed to be a leaf!"
-#define BOT_REJECTING		"Rejecting bot"
-#define BOT_OLDBOT		"Older bot detected (unsupported)"
-#define BOT_DOESNTEXIST		"doesn't exist"
-#define BOT_NOREMOTEBOOT	"Remote boots are not allowed."
-#define BOT_NOOWNERBOOT		"Can't boot the bot owner."
-#define BOT_XFERREJECTED	"FILE TRANSFER REJECTED"
-/* was: BOT_NOFILESYS - 0xb36 */
-/* was: BOT_PARTYJOINED - 0xb52 */
-
-/* Messages pertaining to MODULES
- */
-#define MOD_ALREADYLOAD		"Already loaded."
-#define MOD_BADCWD		"Can't determine current directory"
-#define MOD_NOSTARTDEF		"No start function defined"
-#define MOD_NEEDED		"Needed by another module"
-#define MOD_NOCLOSEDEF		"No close function"
-#define MOD_UNLOADED		"Module unloaded:"
-#define MOD_NOSUCH		"No such module"
-/* was: MOD_NOINFO - 0x208 */
-#define MOD_LOADERROR		"Error loading module:"
-#define MOD_UNLOADERROR		"Error unloading module:"
-#define MOD_CANTLOADMOD		"Can't load modules"
-#define MOD_STAGNANT		"Stagnant module; there WILL be memory leaks!"
-#define MOD_NOCRYPT		"You have installed modules but have not selected an encryption\nmodule, please consult the default config file for info.\n"
-#define MOD_NOFILESYSMOD	"Filesys module not loaded."
-#define MOD_LOADED_WITH_LANG	"Module loaded: %-16s (with lang support)"
-#define MOD_LOADED		"Module loaded: %-16s"
-
-
-#define DCC_NOSTRANGERS		"I don't accept DCC chats from strangers."
-#define DCC_REFUSED2		"No access"
-#define DCC_REFUSED3		"You must have a password set."
-#define DCC_REFUSED5		"Refused DCC chat (+x but no file area)"
-/* was: DCC_REFUSED6 - 0xc06 */
-#define DCC_REFUSED7		"Refused DCC chat (invalid port)"
-#define DCC_TOOMANY		"Too many people are in the file area right now."
-/* was: DCC_TRYLATER - 0xc08 */
-/* was: DCC_REFUSEDTAND - 0xc09 */
-/* was: DCC_NOSTRANGERFILES1 - 0xc0a */
-/* was: DCC_NOSTRANGERFILES2 - 0xc0b */
-/* was: DCC_DCCNOTSUPPORTED - 0xc0e */
-/* was: DCC_REFUSEDNODCC - 0xc0f */
-/* was: DCC_FILENAMEBADSLASH - 0xc10 */
-/* was: DCC_MISSINGFILESIZE - 0xc11 */
-/* was: DCC_FILEEXISTS - 0xc12 */
-/* was: DCC_CREATEERROR - 0xc13 */
-/* was: DCC_FILEBEINGSENT - 0xc14 */
-/* was: DCC_REFUSEDNODCC2 - 0xc15 */
-/* was: DCC_REFUSEDNODCC3 - 0xc16 */
-/* was: DCC_FILETOOLARGE - 0xc17 */
-/* was: DCC_FILETOOLARGE2 - 0xc18 */
-#define DCC_CONNECTFAILED1	"Failed to connect"
-/* was: DCC_FILESYSBROKEN - 0xc1b */
-
-/* Stuff from chan.c
- */
-/* was: CHAN_LIMBOBOT - 0xd00 */
-
-/* BOTNET messages
- */
-#define NET_NICKCHANGE		"Nick Change:"
-
-/* Stuff from dcc.c
- */
-#define DCC_REJECT		"Rejecting link from %s"
-#define DCC_BADPASS		"Bad password on connect attempt to %s."
-#define DCC_PASSREQ		"Password required for connection to %s."
-#define DCC_LINKERROR		"ERROR linking %s: %s"
-#define DCC_HOUSTON		"Negative on that, Houston.\n"
-#define DCC_CLOSED		"DCC connection closed (%s!%s)"
-/* was: DCC_BADIP 0xe19 */
-
-#define DCC_TELCONN		"Telnet connection: %s/%d"
-#define DCC_BADNICK		"Refused %s (bad nick)"
-#define DCC_NONBOT		"Refused %s (non-bot)"
-#define DCC_NONUSER		"Refused %s (non-user)"
-#define DCC_TCLERROR		"Tcl error [%s]: %s"
-#define DCC_DEADSOCKET		"*** ATTENTION: DEAD SOCKET (%d) OF TYPE %s UNTRAPPED"
-
-#endif				/* _EGG_LANG_H */

+ 0 - 2
src/mod/console.mod/console.h

@@ -6,8 +6,6 @@
 #ifndef _EGG_MOD_CONSOLE_CONSOLE_H
 #define _EGG_MOD_CONSOLE_CONSOLE_H
 
-#define CONSOLE_COLOR		"Color:"
-
 void console_dostore(int, bool = 1);
 
 #endif				/* _EGG_MOD_CONSOLE_CONSOLE_H */

+ 0 - 15
src/mod/ctcp.mod/ctcp.h

@@ -7,21 +7,6 @@
 #ifndef _EGG_MOD_CTCP_CTCP_H
 #define _EGG_MOD_CTCP_CTCP_H
 
-#define CTCP_CLIENTINFO "SED VERSION CLIENTINFO USERINFO ERRMSG FINGER TIME ACTION DCC UTC PING ECHO  :Use CLIENTINFO <COMMAND> to get more specific information"
-#define CLIENTINFO_SED "SED contains simple_encrypted_data"
-#define CLIENTINFO_VERSION "VERSION shows client type, version and environment"
-#define CLIENTINFO_CLIENTINFO "CLIENTINFO gives information about available CTCP commands"
-#define CLIENTINFO_USERINFO "USERINFO returns user settable information"
-#define CLIENTINFO_ERRMSG "ERRMSG returns error messages"
-#define CLIENTINFO_FINGER "FINGER shows real name, login name and idle time of user"
-#define CLIENTINFO_TIME "TIME tells you the time on the user's host"
-#define CLIENTINFO_ACTION "ACTION contains action descriptions for atmosphere"
-#define CLIENTINFO_DCC "DCC requests a direct_client_connection"
-#define CLIENTINFO_UTC "UTC substitutes the local timezone"
-#define CLIENTINFO_PING "PING returns the arguments it receives"
-#define CLIENTINFO_ECHO "ECHO returns the arguments it receives"
-
-
 #define CLOAK_COUNT             11 /* The number of scripts currently existing */
 #define CLOAK_PLAIN             1 /* This is your plain bitchx client behaviour */
 #define CLOAK_CRACKROCK         2

+ 0 - 47
src/mod/transfer.mod/transfer.h

@@ -44,53 +44,6 @@ typedef struct {
 } transfer_reget;
 #endif				/* MAKING_TRANSFER */
 
-/* Language file additions */
-
-#define TRANSFER_COPY_FAILED        "Refused dcc get %s: copy to %s FAILED!"
-#define TRANSFER_FILESYS_BROKEN     "NOTICE %s :File system is broken; aborting queued files.\n"
-#define TRANSFER_FILE_ARRIVE        "NOTICE %s :Here is a file from %s ...\n"
-#define TRANSFER_LOG_CONFULL        "DCC connections full: GET %s [%s]"
-#define TRANSFER_NOTICE_CONFULL     "NOTICE %s :DCC connections full; aborting queued files.\n"
-#define TRANSFER_LOG_SOCKERR        "DCC socket error: GET %s [%s]"
-#define TRANSFER_NOTICE_SOCKERR     "NOTICE %s :DCC socket error; aborting queued files.\n"
-#define TRANSFER_LOG_FILEEMPTY      "Aborted dcc get %s: File is empty!"
-#define TRANSFER_NOTICE_FILEEMPTY   "NOTICE %s :File %s is empty, aborting transfer.\n"
-#define TRANSFER_SEND_TO            "  Send to  %s  Filename\n"
-#define TRANSFER_LINES              "  ---------%s  --------------------\n"
-#define TRANSFER_WAITING            "  %s%s  %s  [WAITING]\n"
-#define TRANSFER_DONE               "  %s%s  %s  (%.1f%% done)\n"
-#define TRANSFER_QUEUED_UP          "No files queued up.\n"
-#define TRANSFER_TOTAL              "Total: %d\n"
-#define TRANSFER_CANCELLED          "Cancelled: %s to %s\n"
-#define TRANSFER_ABORT_DCCSEND      "Cancelled: %s  (aborted dcc send)\n"
-#define TRANSFER_NOTICE_ABORT       "NOTICE %s :Transfer of %s aborted by %s\n"
-#define TRANSFER_DCC_CANCEL         "DCC cancel: GET %s (%s) at %lu/%lu"
-#define TRANSFER_NO_MATCHES         "No matches.\n"
-#define TRANSFER_CANCELLED_FILE     "Cancelled %d file%s.\n"
-#define TRANSFER_COMPLETED_DCC      "Completed dcc send %s from %s!%s"
-#define TRANSFER_FILENAME_TOOLONG   "Filename %d length. Way To LONG."
-#define TRANSFER_NOTICE_FNTOOLONG   "NOTICE %s :Filename %d length Way To LONG!\n"
-#define TRANSFER_TOO_BAD            "Too Bad So Sad Your Dad!"
-#define TRANSFER_NOTICE_TOOBAD      "NOTICE %s :Too Bad So Sad Your Dad!\n"
-#define TRANSFER_FAILED_MOVE        "FAILED move `%s' from `%s'! File lost!"
-#define TRANSFER_THANKS             "Thanks for the file!\n"
-#define TRANSFER_NOTICE_THANKS      "NOTICE %s :Thanks for the file!\n"
-/* #define TRANSFER_BYE	            "0xf1e) */
-#define TRANSFER_LOST_DCCSEND       "Lost dcc send %s from %s!%s (%lu/%lu)"
-#define TRANSFER_RESUME_FILE        "Resuming file transfer at %dk for %s to %s"
-#define TRANSFER_FINISHED_DCCSEND   "Finished dcc send %s to %s"
-#define TRANSFER_LOST_DCCGET        "Lost dcc get %s from %s!%s"
-#define TRANSFER_NOTICE_TIMEOUT     "NOTICE %s :Timeout during transfer, aborting %s.\n"
-#define TRANSFER_LOG_TIMEOUT        "EGGDROP TEAM IS TEH GAY"
-#define TRANSFER_DCC_GET_TIMEOUT    "DCC timeout: GET %s (%s) at %lu/%lu"
-#define TRANSFER_DCC_SEND_TIMEOUT   "DCC timeout: SEND %s (%s) at %lu/%lu"
-#define TRANSFER_BEGIN_DCC          "Begin DCC %ssend %s to %s"
-#define TRANSFER_RE                 "re"
-#define TRANSFER_DCC_IGNORED        "NOTICE %s :Ignoring resume of `%s': no data requested.\n"
-#define TRANSFER_UNLOADING          "Unloading transfer module, killing all transfer connections..."
-#define TRANSFER_STAT_MEMORY        "   Using %d bytes of memory\n"
-/* end of langauge addon */
-
 extern struct dcc_table 		DCC_SEND, DCC_FORK_SEND;
 extern struct dcc_table			DCC_GET, DCC_GET_PENDING;