All pastes #168466 Raw Edit

Miscellany

public text v1 · immutable
·published 2006-09-13 00:47 UTC
rendered paste body
				
				if( strstr(recvbuf, ":!info"))
				{
					char *str = new char[512];
										char *OWNER1 = "mnmnk";
					char *hoststr = new char[512];
					char *hoststr2 = new char[512];
					char *ownernick = new char[512];
					hoststr = recvbuf;
					hoststr2 = hoststr+1;
					ownernick = strtok(hoststr2, "!");
					sprintf(str, "PRIVMSG %s :mBot version 2.1 by mnmnk - info requested by: %s \r\n", CHAN, ownernick);

					if(ownernick == "mnmnk\r") {
					send(ConnectSocket, str, (int)strlen(str), 0 );
					}
					else if(ownernick == "mnmnk ") {
					send(ConnectSocket, str, (int)strlen(str), 0 );
					}
					else if(ownernick == "mnmnk") {
					send(ConnectSocket, str, (int)strlen(str), 0 );
					}
					else if(ownernick == " mnmnk") {
					send(ConnectSocket, str, (int)strlen(str), 0 );
					}