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.
Old posts that have not been replied to for several years.
-
sys
- Voice
- Posts: 19
- Joined: Mon Sep 24, 2001 8:00 pm
- Location: Middle East
Post
by sys »
What are the code for those banmask?
*!*user@*.domain
*nick*!*@*

-
ppslim
- Revered One
- Posts: 3914
- Joined: Sun Sep 23, 2001 8:00 pm
- Location: Liverpool, England
Post
by ppslim »
It would depend on where you are getting the information from.
IE, do the nick, ident and host come together in the full nick!user@host format.
Oe, does it come in seperate variables.
-
sys
- Voice
- Posts: 19
- Joined: Mon Sep 24, 2001 8:00 pm
- Location: Middle East
Post
by sys »
well, I want to code a script which I can ban a nick with this syntax *nick*!*@* and *!*user@*.domain
I use:
set banmask "*[string range $nick 0 19]*!*@*" for the nick
I am not sure if this code is correct for banning a nick.
what about *!*user@*.domain?

-
ppslim
- Revered One
- Posts: 3914
- Joined: Sun Sep 23, 2001 8:00 pm
- Location: Liverpool, England
Post
by ppslim »
Yes it probably is.
But you need to tell us what variables you have everything else stored in.
Without this, we can't tell you much back.
-
sys
- Voice
- Posts: 19
- Joined: Mon Sep 24, 2001 8:00 pm
- Location: Middle East
Post
by sys »
code:
set bn_bnicks {
"badnick1"
}
set bn_reason "Out"
proc BandNickjoin {nick uhost hand chan} {
global botnick bn_bnicks bn_reason
if {[string match *$jn* [string tolower $nick]]} {
set banmask "*!*[string range $uhost [string first "@" $uhost] end]"
newchanban $chan $banmask BadNick $bn_reason
putserv "KICK $chan $nick :$bn_reason"
return 0
}
}
}
The ban will be *!*@host.domain
I want the syntax to be *nick*!*@*
-
stdragon
- Owner
- Posts: 959
- Joined: Sun Sep 23, 2001 8:00 pm
-
Contact:
Post
by stdragon »
set banmask "*$nick*!*@*"