ident and realname config settings
This commit is contained in:
parent
8c4281de94
commit
dcae30a707
@ -4,6 +4,8 @@ HOST = "irc.freenode.net"
|
|||||||
PORT = 6667
|
PORT = 6667
|
||||||
USERNAME = "" # for authentication, can be left blank if same as NICK
|
USERNAME = "" # for authentication, can be left blank if same as NICK
|
||||||
NICK = "mywolfbot"
|
NICK = "mywolfbot"
|
||||||
|
IDENT = NICK
|
||||||
|
RNAME = NICK #realname/gecos, defaults to the same as the nick
|
||||||
CMD_CHAR = "!"
|
CMD_CHAR = "!"
|
||||||
CHANGING_HOST_QUIT_MESSAGE = "Changing host"
|
CHANGING_HOST_QUIT_MESSAGE = "Changing host"
|
||||||
|
|
||||||
|
@ -191,7 +191,7 @@ class IRCClient(object):
|
|||||||
self.cap("LS")
|
self.cap("LS")
|
||||||
|
|
||||||
self.nick(self.nickname)
|
self.nick(self.nickname)
|
||||||
self.user(self.nickname, self.real_name)
|
self.user(self.ident, self.real_name)
|
||||||
|
|
||||||
if self.sasl_auth:
|
if self.sasl_auth:
|
||||||
self.cap("REQ", "multi-prefix")
|
self.cap("REQ", "multi-prefix")
|
||||||
@ -283,9 +283,8 @@ class IRCClient(object):
|
|||||||
self.msg("NickServ", "RELEASE "+self.nickname)
|
self.msg("NickServ", "RELEASE "+self.nickname)
|
||||||
def ns_regain(self):
|
def ns_regain(self):
|
||||||
self.msg("NickServ", "REGAIN "+self.nickname)
|
self.msg("NickServ", "REGAIN "+self.nickname)
|
||||||
def user(self, uname, rname):
|
def user(self, ident, rname):
|
||||||
self.send("USER", uname, self.host, self.host,
|
self.send("USER", ident, self.host, self.host, ":{0}".format(rname or ident))
|
||||||
rname or uname)
|
|
||||||
def mainLoop(self):
|
def mainLoop(self):
|
||||||
conn = self.connect()
|
conn = self.connect()
|
||||||
while True:
|
while True:
|
||||||
|
@ -61,6 +61,8 @@ def main():
|
|||||||
authname=botconfig.USERNAME,
|
authname=botconfig.USERNAME,
|
||||||
password=botconfig.PASS,
|
password=botconfig.PASS,
|
||||||
nickname=botconfig.NICK,
|
nickname=botconfig.NICK,
|
||||||
|
ident=botconfig.IDENT,
|
||||||
|
real_name=botconfig.RNAME,
|
||||||
sasl_auth=botconfig.SASL_AUTHENTICATION,
|
sasl_auth=botconfig.SASL_AUTHENTICATION,
|
||||||
use_ssl=botconfig.USE_SSL,
|
use_ssl=botconfig.USE_SSL,
|
||||||
connect_cb=modules.common.connect_callback
|
connect_cb=modules.common.connect_callback
|
||||||
|
Loading…
x
Reference in New Issue
Block a user