napa182 commented on a Page, ChannelList  -  Jan 21, 2010

this is to show the channels the bot is in.

on $*:TEXT:/^!chanlist$/iS:#: { msg # I'm in: $regsubex($str(-,$chan(0)),/(.)/g,$+($chan(\n),$chr(32))) }

on the code you have posted you used $comchan so it would show the channels which both you and the bot are on.
if thats what you are going for then do

on $*:TEXT:/^!chanlist$/iS:#: { msg # Me and $nick are in these same channels: $regsubex($str(-,$comchan($nick,0)),/(.)/g,$+($comchan($nick,\n),$chr(32))) }

also the

if ($nick == $me) { halt }

is useless hence you cant trigger ur own on text events

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.