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 

trigger chan msg

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
MeJseL
Halfop


Joined: 18 Nov 2003
Posts: 61
Location: Gothenburg , sweden

PostPosted: Tue Jan 24, 2006 10:53 pm    Post subject: trigger chan msg Reply with quote

EDIT:

Code:

bind pubm - "*http://*" blabla_url
bind pubm - "*www*" blabla_url


proc blabla_url {nick host hand chan arg} {
if {[botisop $chan]} { return 0
}
putserv "PRIVMSG #MYCHANNEL :$nick: $arg"
return 0
}


Ok i have this.
This will grab urls and msg the whole line to the channel of my choice.
But if the bot is op on channel it will not msg the url line.
As far as this i can handel
But what i want help with is to make the bot only msg the url and not the whole line.
And instead of me using this lame botisop $chan becouse i dont want the bot to msg the url that is triggered from "#MYCHANNEL" the channel where every msg goes.
_________________
yeah!
Back to top
View user's profile Send private message
MeJseL
Halfop


Joined: 18 Nov 2003
Posts: 61
Location: Gothenburg , sweden

PostPosted: Wed Feb 01, 2006 10:09 pm    Post subject: Reply with quote

anyone?...
_________________
yeah!
Back to top
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Thu Feb 02, 2006 2:14 am    Post subject: Reply with quote

Code:

regexp {(?i)(http://\S+)} $str -> url

_________________
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code
Back to top
View user's profile Send private message Visit poster's website
MeJseL
Halfop


Joined: 18 Nov 2003
Posts: 61
Location: Gothenburg , sweden

PostPosted: Fri Feb 03, 2006 2:11 pm    Post subject: Reply with quote

demond wrote:
Code:

regexp {(?i)(http://\S+)} $str -> url


what does the code do?
do i need to add somthing more?

Edit: i got it thx.
_________________
yeah!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Page 1 of 1

 
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