IceChat Forums

IceChat 7 => IceChat 7 Scripts => Topic started by: TheCellist42 on April 28, 2008, 05:55:11 PM

Title: !join
Post by: TheCellist42 on April 28, 2008, 05:55:11 PM
I have This  Script To Make My Bot Join Channels.... But It Only Works When Specific User Lines Arent In There... If I Try To Make it Only for Ops... Or only for me... the script doesnt work... any ideas?


Code: [Select]
Sub ontext(message,TheCellist42,channel,host,servernumber)
If Left(Message,6) = "!join " and Len(Message) > 6 then
if Nickname = "TheCellist42" then
JoinCh = Mid(Message,6)
SendCommand "/join " &JoinCh,ServerNumber
End If
End If
End Sub
Title: Re: !join
Post by: TheCellist42 on April 28, 2008, 06:19:32 PM
Never mind... I Rewrote The Script And It works Fine Now...

Code: [Select]
Sub ONTEXT(Message,Channel,Nickname,Host,ServerNumber)
If Left(Message,6) = "!join " and Len(message) > 6 then
If Nickname = "TheCellist42" Then
JoinCh = Mid(Message,6)
sendCommand "/msg " & channel & "  Joining Channel: " & JoinCh & " Now!",ServerNumber
SendCommand "/join " & JoinCh,ServerNumber
End If
End If
End Sub
Title: Re: !join
Post by: Snerf on April 29, 2008, 09:05:55 AM
The problem was '&JoinCh', you had the to values stuck together, which would cause an error.
Title: Re: !join
Post by: clEEn on September 30, 2008, 07:43:12 AM

If Nickname = "TheCellist42"

I want this script but i want ALL persons that are on the channel to be able to use it, not just "TheCellist42" or someother nick i put there.
Title: Re: !join
Post by: Morio on September 30, 2008, 08:44:54 AM

If Nickname = "TheCellist42"

I want this script but i want ALL persons that are on the channel to be able to use it, not just "TheCellist42" or someother nick i put there.


Then just remove the line
Code: [Select]
If Nickname = "TheCellist42"and you also need to remove one of that 'End If' lines at the bottom