Skip to content
ClearMSN Connection

scripting with clearmsn

A TG007 community discussion started by Gwen.

Discussion 5 posts
Page 1 of 1
Open
Topic #1519 · 5 published posts · 1,289 views

Okay,

I've never coded anything for decoded nicklist..

 

So now...I've changed the if ($nick == $me) halt

to $mi and that part now works fine with clearmsn..

 

...but when I tried to change if ($me !isop $chan) halt

to $mi it wouldn't read it at all.

 

Whats the command for that to work with clear?

Thanks for your help vex,

Gwen ..I'm trying to write it to work with both vin and clear, below is what I'm using...and it doesn't work, until I take out BOTH the if ($me !isop $chan)

 

alias profkick { if ($nick == $me) halt | if ($nick == $mi) halt | if ($me !isop $chan) halt | if ($mi !isop $chan) halt | if ($nick isop $chan) halt | /access $chan add deny $address %profban Profanity | /kick $chan $nick %prok . (Ban set for %profban $+ mins)

}

 

okay i was thinkin about this. and i think i know what the problem is. if you're trying to use both vinc and clear, youll run into problems using $mi because there's no such alias in vincula. so when you say if ($mi !isop $chan) vincula sees if (<nothing> !isop $chan). so of course, "<nothing>" is not a channel op, so it halts. on the other hand, if you're using ClearMSN, and you use if ($me !isop $chan), it will halt if you're nickname is encoded, even if you really are a channel op, because it only knows that your decoded nickname is a channel op.

 

a very simple way to avoid any of this is simply don't use encoded nicknames for your script. i realize that's a pain, but i can't offer any better solution until "Phase2" is ready. if you don't use encoded nicknames, you won't even have to worry about using $mi, because $me will be the same as $mi, so all your normal scripts will work without modification. and don't worry about what you've already modified to use $mi, because it will work too.

bfush.PNG

vex add an alias that gets the nick from the hash table so you can use $me

My code does NOT have bugs. It just develops random features.

Hi vex, thanks I also think that may have been what was happening, because it did simply halt whenever those commands were used. Though it worked fine to use both if ($me isop $chan) and if ($mi isop $chan) just the !isop didn't work.

 

And I'm glad to hear we'll be able to use $me with clear! that saves alot of re-coding! Looking forward to seeing phase 2 :-)

 

Gods Love and Blessings on you,

Gwen

gwen: you can use $me with clearmsn now, as long as your script doesn't have an encoded nickname.

 

ozzy: $me will return the encoded form of your nickname, there's no way i can change that. you can't make an alias that overrides a built-in identifier like $me.

bfush.PNG