View Single Post
  #4  
Old 07-29-2009, 10:29 PM
Secrets's Avatar
Secrets
Demi-God
 
Join Date: May 2007
Location: b
Posts: 1,450
Default

And the rest of it~

Code:
Index: EQEmuConfig.cpp
===================================================================
--- EQEmuConfig.cpp	(revision 832)
+++ EQEmuConfig.cpp	(working copy)
@@ -128,6 +128,26 @@
 	text=ParseTextBlock(ele,"port",true);
 	if (text)
 		ChatPort=atoi(text);
+	
+	text=ParseTextBlock(ele,"channeltooutput",true);
+	if (text)
+		ChannelToOutput=text;
+
+	text=ParseTextBlock(ele,"eqchanneltooutput",true);
+	if (text)
+		EQChannelToOutput=text;
+
+	text=ParseTextBlock(ele,"chatirchost",true);
+	if (text)
+		ChatIRCHost=text;
+
+	text=ParseTextBlock(ele,"chatircport",true);
+	if (text)
+		ChatIRCPort=atoi(text);
+
+	text=ParseTextBlock(ele,"chatircnick",true);
+	if (text)
+		ChatIRCNick=text;
 }
 		
 void EQEmuConfig::do_mailserver(TiXmlElement *ele) {
@@ -323,6 +343,16 @@
 		return(ChatHost);
 	if(var_name == "ChatPort")
 		return(itoa(ChatPort));
+	if(var_name == "ChannelToOutput")
+		return (ChannelToOutput);
+	if(var_name == "EQChannelToOutput")
+		return (EQChannelToOutput);
+	if(var_name == "ChatIRCHost")
+		return(ChatIRCHost);
+	if(var_name == "ChatIRCPort")
+		return(itoa(ChatIRCPort));
+	if(var_name == "ChatIRCNick")
+		return(ChatIRCNick);
 	if(var_name == "MailHost")
 		return(MailHost);
 	if(var_name == "MailPort")
@@ -386,6 +416,11 @@
 	cout << "WorldHTTPEnabled = " << WorldHTTPEnabled << endl;
 	cout << "ChatHost = " << ChatHost << endl;
 	cout << "ChatPort = " << ChatPort << endl;
+	cout << "ChannelToOutput = " << ChannelToOutput << endl;
+	cout << "EQChannelToOutput = " << EQChannelToOutput << endl;
+	cout << "ChatIRCHost = " << ChatIRCHost << endl;
+	cout << "ChatIRCPort = " << ChatIRCPort << endl;
+	cout << "ChatIRCNick = " << ChatIRCNick << endl;
 	cout << "MailHost = " << MailHost << endl;
 	cout << "MailPort = " << MailPort << endl;
 	cout << "DatabaseHost = " << DatabaseHost << endl;
Index: EQEmuConfig.h
===================================================================
--- EQEmuConfig.h	(revision 832)
+++ EQEmuConfig.h	(working copy)
@@ -46,7 +46,12 @@
 	// From <chatserver/>
 	string ChatHost;
 	uint16 ChatPort;
-	
+	string ChannelToOutput;
+	string EQChannelToOutput;
+	string ChatIRCHost;
+	uint16 ChatIRCPort;
+	string ChatIRCNick;
+
 	// From <mailserver/>
 	string MailHost;
 	uint16 MailPort;
@@ -110,7 +115,7 @@
 		LoginHost="eqemulator.net";
 		LoginPort=5998;
 
-		// World
+		// Worldstrcpy(lsi->name, Config->LongName.c_str());
 		Locked=false;
 		WorldTCPPort=9000;
 		TelnetEnabled=false;
@@ -122,7 +127,13 @@
 		// Mail
 		ChatHost="eqchat.eqemulator.net";
 		ChatPort=7778;
+		ChannelToOutput="#eqemuchattest";
+		EQChannelToOutput="General";
+		ChatIRCHost="eqnet.eqemulator.net";
+		ChatIRCPort=6667;
+		ChatIRCNick="Secretsbot";
 
+
 		// Mail
 		MailHost="eqmail.eqemulator.net";
 		MailPort=7779;
Reply With Quote