mIRC Home    About    Download    Register    News    Help

Print Thread
#83086 15/05/04 04:48 PM
Joined: Apr 2004
Posts: 27
P
parvez Offline OP
Ameglian cow
OP Offline
Ameglian cow
P
Joined: Apr 2004
Posts: 27
there is a bot on irc.banglacafe.com
its called ircpro
so when someone types !ban Mynick
it bans my ip
i want a code that will send !unban mynick
or just unban it
plz! help me out
i really need that
Thank you!

#83087 15/05/04 06:11 PM
Joined: Feb 2004
Posts: 714
Z
Hoopy frood
Offline
Hoopy frood
Z
Joined: Feb 2004
Posts: 714
Code:
on @<level>:TEXT:!unban *:#: {
  var %ban = $address($nick,<mask>)
  mode $chan -b %ban
}
You need to change the <level> for the user level that you want the command to respond to. In this case, the level that the bot should respond to.

You also need to change the <mask> for the mask that the bot uses to ban. I.e.: mask 3 = *!*userid@*.host

Done that, to unban someone just type !unban <nickname>
(note: The person has to be in the channel)

The script isnt tested, so im not 100% sure it will work.

Hope this helps!
Zyzzy smile


"All we are saying is give peace a chance" -- John Lennon
#83088 15/05/04 07:28 PM
Joined: Apr 2004
Posts: 27
P
parvez Offline OP
Ameglian cow
OP Offline
Ameglian cow
P
Joined: Apr 2004
Posts: 27
hmm well
am saying that without typing !unban
i want it to unban auto
just like
Code:
 on @*:BAN:#: {
  if ($banmask iswm $address($me,5)) {
    mode $chan -bo $banmask $nick
  }
} 

confused

#83089 15/05/04 07:36 PM
Joined: Feb 2004
Posts: 714
Z
Hoopy frood
Offline
Hoopy frood
Z
Joined: Feb 2004
Posts: 714
Oh, i see..
Code:
on @*:BAN:#: {
  if ($banmask iswm $address($me,5)) {
    .msg $chan !unban $me
  }
} 
You mean something like this?

Sorry if i misunderstood it, and if i did it again explain me because i've a slow brain grin

Zyzzy smile


"All we are saying is give peace a chance" -- John Lennon
#83090 15/05/04 08:27 PM
Joined: Apr 2004
Posts: 27
P
parvez Offline OP
Ameglian cow
OP Offline
Ameglian cow
P
Joined: Apr 2004
Posts: 27
okay look
theres this bot called >>ircpro << on irc.banglacafe.com
when someone wanna ban someone, they gotta type !ban nick
so i want that when someone bans me, i want it to unban it auto
if you type !unban nick , the bot will unban the ip
Quote:
so the point is when someone bans me by typing !ban parvez, it shud auto send !unban parvez

#83091 15/05/04 08:33 PM
Joined: Feb 2004
Posts: 714
Z
Hoopy frood
Offline
Hoopy frood
Z
Joined: Feb 2004
Posts: 714
Oh, i think i understand now smile
Code:
on *:BAN:#: {
  if ($banmask iswm $address($me,5)) {
    .msg $chan !unban $me
  }
} 
Note that i removed the @ from the code.

IF i understood it right, this might help smile

Zyzzy.


"All we are saying is give peace a chance" -- John Lennon
#83092 15/05/04 08:42 PM
Joined: Apr 2004
Posts: 27
P
parvez Offline OP
Ameglian cow
OP Offline
Ameglian cow
P
Joined: Apr 2004
Posts: 27
oh man
it didnt worked
[16:40] <spEEd> !ban uNkNowN
[16:40] * ircpro sets mode: +b *!*@user-0cev82t.cable.mindspring.com
nothing happens after that! frown

#83093 15/05/04 08:48 PM
Joined: Feb 2004
Posts: 714
Z
Hoopy frood
Offline
Hoopy frood
Z
Joined: Feb 2004
Posts: 714
It worked here.

That code is supposed only to work if You are the banned person, and it will NOT appear on your screen. To make it appear, just get the dot (.) out of the .msg $chan string wink

Last edited by Zyzzyx26; 15/05/04 08:49 PM.

"All we are saying is give peace a chance" -- John Lennon
#83094 15/05/04 08:49 PM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
It works for me, do a /whois on yourself then try again.

#83095 16/05/04 02:00 AM
Joined: Nov 2003
Posts: 7
R
R3D Offline
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
R
Joined: Nov 2003
Posts: 7
I don't see how this will help you. While I understand the question if you are banned in the channel you can not talk in that channel (on most IRCds) so messaging the channel with an unban command will not help.

#83096 16/05/04 08:21 PM
Joined: Apr 2004
Posts: 27
P
parvez Offline OP
Ameglian cow
OP Offline
Ameglian cow
P
Joined: Apr 2004
Posts: 27
Zyzzyx26, well u see this
[16:17] <idle> !ban Parvez
[16:17] * ircpro sets mode: +b *!*@user-0cev82t.cable.mindspring.com
Parvez is me and idle is a different person
how come it didnt do anything?
i put this code on my remote
Code:
 on *:BAN:#: {
  if ($banmask iswm $address($me,5)) {
    msg $chan !unban $me
  }
}
 



#83097 17/05/04 12:15 AM
Joined: Feb 2004
Posts: 714
Z
Hoopy frood
Offline
Hoopy frood
Z
Joined: Feb 2004
Posts: 714
Well, you have to take under consideration what R3D said. Most networks do not allow banned people to talk in the channel (some still allow if you're opped).

So you need to check and see if that network you're on allows that or not. Another way out is sending that !unban command in a Private Message to the bot, IF it accepts those commands in pvt.

If it does, then paste that into your remotes:
Code:
on *:BAN:#: {
  if ($banmask iswm $address($me,5)) {
    msg &lt;BOT's NICKNAME&gt; !unban $me
  }
}
You must change it to the bots nick, and perhaps change the command as well... there are some bots that respond to different commands if they are sent via Pvt.

Good luck!
Zyzzy smile



"All we are saying is give peace a chance" -- John Lennon

Link Copied to Clipboard