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.

Search found 1290 matches

by CrazyCat
Thu Nov 14, 2024 3:26 am
Forum: Scripting Help
Topic: vhost.tcl
Replies: 2
Views: 152

Re: vhost.tcl

I think the trouble is in the get_vhost procedure, probably you have only one line in VHostlist.txt so you try to make a rand on 0 (value of $vhostcount if there is only one line). Here is a modification (and probably optimisation) of this proc: proc get_vhost { } { set fi [open "VHostlist.txt&...
by CrazyCat
Tue Nov 12, 2024 6:58 pm
Forum: Scripting Help
Topic: question?
Replies: 1
Views: 90

Re: question?

Add some string match in your exiting condition: proc check:version {nick uhost hand chan} { if {[isop $nick $chan] || [isvoice $nick $chan] || [matchattr $hand Pfov|Pfov $chan] || [string match "*@125.*" $uhost] || [string match "*@118.*" $uhost] } { return 0 } } If you don't wa...
by CrazyCat
Mon Nov 11, 2024 9:08 am
Forum: Scripting Help
Topic: What does this code do?
Replies: 1
Views: 94

Re: What does this code do?

This code is to auto-remove an extended ban which is not clearly understood by eggdrop to auto-remove it after 20 minutes.
Depending on the ircd used, the ~m ban is not the same :)
by CrazyCat
Wed Nov 06, 2024 3:29 am
Forum: Scripting Help
Topic: error ?
Replies: 3
Views: 123

Re: error ?

You can't fix it by code. The only way is to have the eggdrop in the "chantojoin" channel.
by CrazyCat
Tue Nov 05, 2024 5:44 am
Forum: Scripting Help
Topic: error ?
Replies: 3
Views: 123

Re: error ?

Your eggdrop is not in #sohbet (chantojoin) so the [onchan $nick $chantojoin] test can't work.
Eggdrop can only work with chans it's in (except for validchan).
by CrazyCat
Sun Nov 03, 2024 1:56 pm
Forum: Scripting Help
Topic: what's the problem?
Replies: 2
Views: 125

Re: what's the problem?

Your bind will never run: minutes are never a multiple of 60. bind cron <flags> <mask> <proc> procname <minute 0-59> <hour 0-23> <day 1-31> <month 1-12> <weekday 0-6> Description: similar to bind TIME, but the mask is evaluated as a cron expression, e.g. “16/2 */2 5-15 7,8,9 4”. It can contain up to...
by CrazyCat
Tue Oct 22, 2024 2:47 am
Forum: Scripting Help
Topic: eggdrop help
Replies: 3
Views: 565

Re: eggdrop help

You don't need any tcl script, just act in party-line.
And note that info/greet works when you join a channel where the eggdrop is, it can't work when you connect a server.
by CrazyCat
Mon Oct 21, 2024 1:06 am
Forum: Scripting Help
Topic: eggdrop help
Replies: 3
Views: 565

Re: eggdrop help

If that's only for you (or someone in the eggdrop userlist), you can use the infoline:

Code: Select all

.info [channel] [your greet or info]
And activate its display using:

Code: Select all

.chanset #channel +greet
by CrazyCat
Sun Oct 20, 2024 11:06 am
Forum: Script Requests
Topic: Add user flag if nick gets opped via ChanServ
Replies: 3
Views: 659

Re: Add user flag if nick gets opped via ChanServ

Do you know that you can now use things based on account ? https://docs.eggheads.org/using/accounts.html https://docs.eggheads.org/using/tcl-commands.html#getaccount-nickname-channel and also bind account: bind account <flags> <mask> <proc> procname <nick> <user> <hand> <chan> <account> Description:...
by CrazyCat
Tue Oct 08, 2024 10:55 am
Forum: Eggdrop Help
Topic: Tcl error in file 'eggdrop.conf':
Replies: 3
Views: 1459

Re: Tcl error in file 'eggdrop.conf':

Follow the instructions: telnet the bot, create your account, and then do a .status to know what happen.
by CrazyCat
Tue Oct 08, 2024 10:00 am
Forum: Eggdrop Help
Topic: Tcl error in file 'eggdrop.conf':
Replies: 3
Views: 1459

Re: Tcl error in file 'eggdrop.conf':

It just means that you can't use this port because it's already used.

You can do netstat -anp | grep 56659 to know which process uses this port.
by CrazyCat
Mon Oct 07, 2024 9:38 am
Forum: Scripting Help
Topic: split large lines into multiple for easier reading
Replies: 4
Views: 1418

Re: split large lines into multiple for easier reading

Oh, I didn't underdstand you mean "wrapping" your code.
Splitting a regexp is a bad idea as you don't know how cr/lf could be interpreted, but you can have a look on https://stackoverflow.com/questions/636 ... iple-lines
by CrazyCat
Mon Oct 07, 2024 8:56 am
Forum: Scripting Help
Topic: split large lines into multiple for easier reading
Replies: 4
Views: 1418

Re: split large lines into multiple for easier reading

Can you post an example of line you want to split ?
And your regexp is... weird.
by CrazyCat
Mon Sep 23, 2024 8:02 am
Forum: Script Support & Releases
Topic: UNO Ads error on timer
Replies: 10
Views: 2656

Re: UNO Ads error on timer

Looks like only UnoAdNumber from 0 to 4 are implemented, the 5 to 7 call unexisting procedures.

Change line 2346:
if {$UnoAdNumber > 4} {set UnoAdNumber 0}
by CrazyCat
Mon Sep 23, 2024 7:58 am
Forum: Scripting Help
Topic: can i ask a question ?
Replies: 6
Views: 1716

Re: can i ask a question ?

Lol, I didn't see there was a second bind/proc.
And willyw is right:
proc msg_guess { nick chan host handle text } {
   set unumber [join [lindex [split $text] 0]]
...
But your script can't work as number is a list, not an element of the list.