| View previous topic :: View next topic |
| Author |
Message |
awyeah Revered One

Joined: 26 Apr 2004 Posts: 1580 Location: Switzerland
|
Posted: Thu Aug 25, 2005 3:59 am Post subject: |
|
|
Obviously if that record hasn't been yet removed from the bots memory. So here being on the safeside, using it when that person not in the channel wouldn't be my idea of a working script, because sometimes the unlikely can always happen. _________________ ·awyeah·
==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
================================== |
|
| Back to top |
|
 |
T-Xorcist Halfop
Joined: 14 Nov 2005 Posts: 47 Location: Netherlands
|
Posted: Mon Nov 14, 2005 10:06 pm Post subject: |
|
|
How do you get the format like *!*@user.host.com instead of *!*T-Xorcist@user.host.com in this particular script?  _________________ is-1337.org IRC server! |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Tue Nov 15, 2005 5:41 am Post subject: |
|
|
| T-Xorcist wrote: | How do you get the format like *!*@user.host.com instead of *!*T-Xorcist@user.host.com in this particular script?  | What do you mean? _________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
T-Xorcist Halfop
Joined: 14 Nov 2005 Posts: 47 Location: Netherlands
|
Posted: Tue Nov 15, 2005 8:21 am Post subject: |
|
|
Well, here you get the mask right?
set mask $n![getchanhost $n $chan]
This mask will have as result (example) T-Xorcist@host.com right?
But how can you get the mask only for *!*@host.com
So that you can get everything behind the @, but not in front? _________________ is-1337.org IRC server! |
|
| Back to top |
|
 |
]Kami[ Owner

Joined: 24 Jul 2003 Posts: 590 Location: Slovenia
|
Posted: Tue Nov 15, 2005 3:31 pm Post subject: |
|
|
scan $uhost {%*[^@]@%s} host
And then you can use this
putquick "MODE $chan +b *!*@$host _________________ Slovene Eggdrop Page |
|
| Back to top |
|
 |
T-Xorcist Halfop
Joined: 14 Nov 2005 Posts: 47 Location: Netherlands
|
Posted: Tue Nov 15, 2005 3:41 pm Post subject: |
|
|
Yes, but now it bans my hostmask.
I did not ask my question the way I should.
I use /msg bot ban #channel nickname
How do I get the host of nickname when I try to ban that nick?
PS: I had this first: set mask [getchanhost $whom $where] _________________ is-1337.org IRC server! |
|
| Back to top |
|
 |
]Kami[ Owner

Joined: 24 Jul 2003 Posts: 590 Location: Slovenia
|
Posted: Tue Nov 15, 2005 4:01 pm Post subject: |
|
|
set mask [getchanhost $whom $where] -> But reutrned T-Xorcist@host.com ?
Well, it's simple then.
Use:
scan $mask {%*[^@]@%s} host
And while baning use variable host instead of mask (*!*@$host). _________________ Slovene Eggdrop Page |
|
| Back to top |
|
 |
T-Xorcist Halfop
Joined: 14 Nov 2005 Posts: 47 Location: Netherlands
|
Posted: Tue Nov 15, 2005 4:08 pm Post subject: |
|
|
Yes!! Thank you very much! Apreciate it!  _________________ is-1337.org IRC server! |
|
| Back to top |
|
 |
|