Skip to content
MSN

Unban

A TG007 community discussion started by Fender.

Discussion 3 posts
Page 1 of 1
Open
Topic #1953 · 3 published posts · 501 views

Hi, can anyone help me wit a command so that when someone in my room gets banned, I can do .unban or whatever and it'll unban them? Like I don't really know how to make the script remember who the last person banned was. So if anyone could help thad be great. thanks.

on *:JOIN:#: { if ($nick == $me) { unset %unban. [ $+ [ $chan ] ] } }
on *:KICK:#: { set %unban. [ $+ [ $chan ] ] $knick }
on admin:.unban: { 
access $chan delete deny *! $+ $$ial(%unban. [ $+ [ $chan ] ] $+ *,1).addr 
access $chan delete deny %unban. [ $+ [ $chan ] ] $+ !*
/msg $chan (*) %unban. [ $+ [ $chan ] ] has been unbaned (*)
}

 

untested but should work fine. make sure you are under user list as admin to get this working though. You don't need the onjoin code, but it is there just to clear the variable if you happen to join that room so it is recommeneded.

lol in my crap mIRC coding it would be

on *:join:/ban $chan $nick You are henceforth banished from this channel.

 

 

... and I don't think that would even work.