try $irc->mode('#channel', '+k mypassword');
this should also work with any other mode change for channels with parameters, just divide them with a space...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi there again :)
Is it possible to set chanmodes with a parameter? Like +k [password] or +l [userlimit]?
try $irc->mode('#channel', '+k mypassword');
this should also work with any other mode change for channels with parameters, just divide them with a space...