| View previous topic :: View next topic |
| Author |
Message |
MeJseL Halfop
Joined: 18 Nov 2003 Posts: 61 Location: Gothenburg , sweden
|
Posted: Tue Jan 24, 2006 10:53 pm Post subject: trigger chan msg |
|
|
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 |
|
 |
MeJseL Halfop
Joined: 18 Nov 2003 Posts: 61 Location: Gothenburg , sweden
|
Posted: Wed Feb 01, 2006 10:09 pm Post subject: |
|
|
anyone?... _________________ yeah! |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Thu Feb 02, 2006 2:14 am Post subject: |
|
|
| 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 |
|
 |
MeJseL Halfop
Joined: 18 Nov 2003 Posts: 61 Location: Gothenburg , sweden
|
Posted: Fri Feb 03, 2006 2:11 pm Post subject: |
|
|
| 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 |
|
 |
|