Exemple #1
0
static void
irc_ns_identify (server *serv, char *pass)
{
	switch (serv->loginmethod)
	{
		case LOGIN_CHALLENGEAUTH:
			tcp_sendf (serv, "PRIVMSG %s :CHALLENGE\r\n", CHALLENGEAUTH_NICK);	/* request a challenge from Q */
			break;
#if 0
		case LOGIN_AUTH:
			irc_nickserv (serv, "", serv->nick, pass, "");
			break;
#endif
		default:
			irc_nickserv (serv, "IDENTIFY", pass, "", "");
	}
}
Exemple #2
0
static void
irc_ns_ghost (server *serv, char *usname, char *pass)
{
	if (serv->loginmethod != LOGIN_CHALLENGEAUTH)
	{
		irc_nickserv (serv, "GHOST", usname, " ", pass);
	}
}
Exemple #3
0
void
server::p_ns_ghost(const std::string& usname, const std::string& pass)
{
	if (this->loginmethod != LOGIN_CHALLENGEAUTH)
	{
		irc_nickserv (*this, "GHOST", usname, " ", pass);
	}
}
Exemple #4
0
void
server::p_ns_identify(const std::string &pass)
{
	switch (this->loginmethod)
	{
		case LOGIN_CHALLENGEAUTH:
			tcp_sendf (*this, "PRIVMSG %s :CHALLENGE\r\n", CHALLENGEAUTH_NICK);	/* request a challenge from Q */
			break;
#if 0
		case LOGIN_AUTH:
			irc_nickserv (*this, "", this->nick, pass, "");
			break;
#endif
		default:
			irc_nickserv (*this, "IDENTIFY", pass, "", "");
	}
}
Exemple #5
0
static void
irc_ns_ghost (server *serv, char *usname, char *pass)
{
	if (serv->nickservtype != 4)
		irc_nickserv (serv, "GHOST", usname, " ", pass);
}
Exemple #6
0
static void
irc_ns_identify (server *serv, char *pass)
{
	irc_nickserv (serv, "IDENTIFY", pass, "", "");
}
Exemple #7
0
void
Services::nick_identify (void)
{
  snprintf (buf, MSG_SIZE, "identify %s", (c_char)nickserv_pass);
  irc_nickserv (buf);
}