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.

mask

Old posts that have not been replied to for several years.
Locked
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

set mask "*!*@[lindex [split *!*[getchanhost $nick $chan] @] 1]"

Why using this mask sometimes he bans *!*@ ? I get that ban when there is more than 1 nick to be punished.. Any sugestion?
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

set mask "*!*@[lindex [split *!*[getchanhost $nick $chan] @] 1]"

For one thing, the *!* inside the split command should not be needed, as the getchanhost command will return the full "nick!user@host.name" format.

Second, the user must be on the channel specified, else it will not work.

Third, snippets of your code are not allways good. As they only show what you think is wrong. They do not show where other variable are set, and what there values are.
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

well is on channel :smile:
what mask to use then to a *!*@ip then? and thanks for the reply.
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

A simple

Code: Select all

set mask "*!*@[lindex [split [getchanhost $nick $chan] @] 1]"
Will split it.

Look at what each item returns.

Your example tried to do a split on
eg
*!*nickname!ident@host.name
when it should be
nickname!ident@host.name
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

okay, thanks!
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

set mask "*!*@[lindex [split $host @] 1]" was the mask with the problem..
Locked