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, "", ""); } }
static void irc_ns_ghost (server *serv, char *usname, char *pass) { if (serv->loginmethod != LOGIN_CHALLENGEAUTH) { irc_nickserv (serv, "GHOST", usname, " ", pass); } }
void server::p_ns_ghost(const std::string& usname, const std::string& pass) { if (this->loginmethod != LOGIN_CHALLENGEAUTH) { irc_nickserv (*this, "GHOST", usname, " ", pass); } }
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, "", ""); } }
static void irc_ns_ghost (server *serv, char *usname, char *pass) { if (serv->nickservtype != 4) irc_nickserv (serv, "GHOST", usname, " ", pass); }
static void irc_ns_identify (server *serv, char *pass) { irc_nickserv (serv, "IDENTIFY", pass, "", ""); }
void Services::nick_identify (void) { snprintf (buf, MSG_SIZE, "identify %s", (c_char)nickserv_pass); irc_nickserv (buf); }