File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ module.exports = class IrcClient extends EventEmitter {
4545 encoding : 'utf8' ,
4646 version : 'node.js irc-framework' ,
4747 enable_chghost : false ,
48+ enable_setname : false ,
4849 enable_echomessage : false ,
4950 auto_reconnect : true ,
5051 auto_reconnect_wait : 4000 ,
Original file line number Diff line number Diff line change @@ -117,7 +117,6 @@ var handlers = {
117117 'server-time' ,
118118 'userhost-in-names' ,
119119 'extended-join' ,
120- 'draft/setname' ,
121120 'znc.in/server-time-iso' ,
122121 'znc.in/server-time'
123122 ] ;
@@ -129,6 +128,9 @@ var handlers = {
129128 if ( this . connection . options . enable_chghost ) {
130129 want . push ( 'chghost' ) ;
131130 }
131+ if ( this . connection . options . enable_setname ) {
132+ want . push ( 'draft/setname' ) ;
133+ }
132134 if ( this . connection . options . enable_echomessage ) {
133135 want . push ( 'echo-message' ) ;
134136 }
You can’t perform that action at this time.
0 commit comments