mIRC Home    About    Download    Register    News    Help

Print Thread
#260236 19/03/17 03:07 PM
Joined: Mar 2017
Posts: 1
T
TFS Offline OP
Mostly harmless
OP Offline
Mostly harmless
T
Joined: Mar 2017
Posts: 1
I'm a recent mIRC user and I'm having Script problems but I can't understand why as according to the documentation it should work, please take a look and if you can tell me why it fails I'd appreciate the help. This is meant to be used with Twitch but until it works it's unusable.

Remote:
on 1:connect: { raw CAP REQ :twitch.tv/membership }

on 1:text:*:#<channel>: {
if (welcomed != 1) {
if (<greeting text>) {
if (<user group>) {
/hadd -m welcomed $nick 1
wait 4
msg $chan Hello and welcome to the chat!
}
}
}
}

Variables:
/hfree welcomed
/hmake -s welcomed 255

the script keeps trying to create a hashtable of the username but it I don't know why. welcomed is the hashtable it should be accessing.

Last edited by TFS; 19/03/17 03:20 PM.
TFS #260238 19/03/17 08:06 PM
Joined: Feb 2003
Posts: 2,812
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,812
Code:
if (welcomed != 1) { 


You're checking "if the text string 'welcome' is not the text string '1'", which it never will be.


Well. At least I won lunch.
Good philosophy, see good in bad, I like!

Link Copied to Clipboard