This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Ban script bans ident and host , i need *!*@host

Old posts that have not been replied to for several years.
Locked
V
Volume
Halfop
Posts: 84
Joined: Fri May 23, 2003 5:08 am

Ban script bans ident and host , i need *!*@host

Post by Volume »

Sorry for my bad english.

this command in the tcl script
pushmode $chan +b "*!*$uhost"

bans only:
Sunstorm sets mode: +b *!*huhuhu@p508C119F.dip.t-dialin.net

i need this ban:

*!*@p508C119F.dip.t-dialin.net

what must i change for this banmask ?

thank you for help
User avatar
ReaLz
Op
Posts: 121
Joined: Sat Oct 19, 2002 5:33 am
Location: Athens, Greece

Post by ReaLz »

Code: Select all

set hostban "*!*[string range $uhost [string first "@" $uhost] end]"
and then use

Code: Select all

pushmode $chan +b $hostban
«A fantastic spaghetti is a spaghetti that does not exist»
V
Volume
Halfop
Posts: 84
Joined: Fri May 23, 2003 5:08 am

@ReaLz

Post by Volume »

@ReaLz
Thank you very much :))

what command must i use for global ban ?
and
can bot add this user to global +dk flag ? the problem is the nick. the nick ist often not the same of the partyline add nick. so must the bot the host set +dk gloab.

thank you for your time
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

You can try this mask: set mask "*!*@[lindex [split $uhost @] 1]". Also, to place a channel ban and keep it in the bot's list use the newchanban. To place it globaly use the newban. Look in the tcl-commands.doc file after them. Also for the +dk see the chattr, in the same file.
Once the game is over, the king and the pawn go back in the same box.
V
Volume
Halfop
Posts: 84
Joined: Fri May 23, 2003 5:08 am

@caesar

Post by Volume »

caesar wrote:You can try this mask: set mask "*!*@[lindex [split $uhost @] 1]". Also, to place a channel ban and keep it in the bot's list use the newchanban. To place it globaly use the newban. Look in the tcl-commands.doc file after them. Also for the +dk see the chattr, in the same file.
hello :)

i have use:
set mask "*!*@[lindex [split $uhost @] 1]"
newban $mask

but is not global ban :(
what is my mistake ?

thank you for help
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Look in the tcl-commands.doc file for the correct usage of the newban.
Once the game is over, the king and the pawn go back in the same box.
Locked