egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Unbanning through the bot.
Goto page Previous  1, 2
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
awyeah
Revered One


Joined: 26 Apr 2004
Posts: 1580
Location: Switzerland

PostPosted: Thu Aug 25, 2005 3:59 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
T-Xorcist
Halfop


Joined: 14 Nov 2005
Posts: 47
Location: Netherlands

PostPosted: Mon Nov 14, 2005 10:06 pm    Post subject: Reply with quote

How do you get the format like *!*@user.host.com instead of *!*T-Xorcist@user.host.com in this particular script? Very Happy
_________________
is-1337.org IRC server!
Back to top
View user's profile Send private message Visit poster's website
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Tue Nov 15, 2005 5:41 am    Post subject: Reply with quote

T-Xorcist wrote:
How do you get the format like *!*@user.host.com instead of *!*T-Xorcist@user.host.com in this particular script? Very Happy
What do you mean?
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
T-Xorcist
Halfop


Joined: 14 Nov 2005
Posts: 47
Location: Netherlands

PostPosted: Tue Nov 15, 2005 8:21 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
]Kami[
Owner


Joined: 24 Jul 2003
Posts: 590
Location: Slovenia

PostPosted: Tue Nov 15, 2005 3:31 pm    Post subject: Reply with quote

scan $uhost {%*[^@]@%s} host

And then you can use this

putquick "MODE $chan +b *!*@$host
_________________
Slovene Eggdrop Page
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
T-Xorcist
Halfop


Joined: 14 Nov 2005
Posts: 47
Location: Netherlands

PostPosted: Tue Nov 15, 2005 3:41 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
]Kami[
Owner


Joined: 24 Jul 2003
Posts: 590
Location: Slovenia

PostPosted: Tue Nov 15, 2005 4:01 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
T-Xorcist
Halfop


Joined: 14 Nov 2005
Posts: 47
Location: Netherlands

PostPosted: Tue Nov 15, 2005 4:08 pm    Post subject: Reply with quote

Yes!! Thank you very much! Apreciate it! Cool
_________________
is-1337.org IRC server!
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber