Merge pull request #179 from devxoul/master
Add username field to user info.
This commit is contained in:
commit
2efcad8fc5
@ -138,6 +138,7 @@ Client.prototype.connect = function(args) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
var nick = args.nick || "shout-user";
|
var nick = args.nick || "shout-user";
|
||||||
|
var username = args.username || nick;
|
||||||
var realname = args.realname || "Shout User";
|
var realname = args.realname || "Shout User";
|
||||||
|
|
||||||
var irc = slate(stream);
|
var irc = slate(stream);
|
||||||
@ -148,7 +149,7 @@ Client.prototype.connect = function(args) {
|
|||||||
|
|
||||||
irc.me = nick;
|
irc.me = nick;
|
||||||
irc.nick(nick);
|
irc.nick(nick);
|
||||||
irc.user(nick, realname);
|
irc.user(username, realname);
|
||||||
|
|
||||||
var network = new Network({
|
var network = new Network({
|
||||||
host: server.host,
|
host: server.host,
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
"tls": true,
|
"tls": true,
|
||||||
"password": "serverpw",
|
"password": "serverpw",
|
||||||
"nick": "john",
|
"nick": "john",
|
||||||
|
"username": "john",
|
||||||
"realname": "John Doe",
|
"realname": "John Doe",
|
||||||
"commands": [
|
"commands": [
|
||||||
"/msg NickServ identify password",
|
"/msg NickServ identify password",
|
||||||
|
Loading…
Reference in New Issue
Block a user