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.

Voice/devoice again

Help for those learning Tcl or writing their own scripts.
Post Reply
n
neoclust
Halfop
Posts: 55
Joined: Fri Aug 14, 2009 11:03 am

Voice/devoice again

Post by neoclust »

Hello I apologize for having published another post on the same subject, I tried voice and devoice at the same time but I realized that this does not work finally to see this code :

Code: Select all

				
	utimer 10 [list cancel_mode $nick $chan $host]
 
 
proc cancel_mode {nick chan host} {
       putfast "MODE $chan +v $nick" 
       if {![string match *.users.undernet.org $host]} {       
	putfast "MODE $chan -v $nick" 
   }
the bot in this case voice while stopping there, I thought of another way to fit that idea but in vain, you can help me with that because it is me who jammed the pushmode remains unable to apply + v-v at the same time thanks.
User avatar
CrazyCat
Revered One
Posts: 1334
Joined: Sun Jan 13, 2002 8:00 pm
Location: France
Contact:

Post by CrazyCat »

I don't really understand your trouble. Why don't voice the user only if his host matches the "authorized" host ?
And using pushmode and flushmode seems better than putfast
Post Reply