Anope IRC Services

Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: Request: !vhost Modules  (Read 18935 times)

0 Members and 1 Guest are viewing this topic.

snail

  • Guest
Request: !vhost Modules
« on: February 11, 2006, 05:32:35 PM »

I guess it will be very usefull in the next version, if Anope includes supports for !vhost fantasy commands on #vhost channel. So that when users type !vhost  host.anope.org they will be automatically assigned  a vhost. Thanks. :)
Logged

Pieter Bootsma

  • Team
  • *
  • Offline Offline
  • Posts: 189
    • http://geniusdex.net/
(No subject)
« Reply #1 on: February 11, 2006, 06:23:22 PM »

This (mostly uncontrolled) form of assigning vhosts is not really wanted by anyone, and i know that there is a module out there which does the same, altough i can't recall it's name. I don't really think this will be included in any future release; it's a great example of the use of modules.
Logged

Vorex

  • Guest
(No subject)
« Reply #2 on: February 11, 2006, 07:08:03 PM »

Logged

Trystan Scott Lee

  • Contributor
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 343
(No subject)
« Reply #3 on: February 11, 2006, 07:52:15 PM »

Here is the one I wrote

- supports config file setting of what channel vhost work in not just #vhost like Vorex module
- supports a vhost denied list so that you can setup vhost that you don't want people to have

http://www.nomadinc.net/mymods/files/vhost_fantasy.c
Logged
my God my tourniquet, return to me salvation

snail

  • Guest
(No subject)
« Reply #4 on: February 13, 2006, 07:25:22 AM »

thanks  :P
Logged

thepitster

  • Guest
(No subject)
« Reply #5 on: February 22, 2006, 02:42:04 AM »

Vorex you module works good but why the kick from hostserv?
<!PiTTy> !vhost bite.me.fewl
* HostServ sets mode: +b *!*@Network-Admin.allripped.net (Ban Affects: PiTTy)
* You were kicked by HostServ (You can request a new vhost a week after your last one. Thank you. The new request system is based on hosts, if you have not recently requested a vhost, please rejoin #vhost and ask for one from an IRCop)

and Trystan your module doesnt even work at all for me on my setup
Code: [Select]
[Feb 21 20:01:03 2006] OperServ: PiTTy: set debug on
[Feb 21 20:01:03.622884 2006] Debug mode activated
[Feb 21 20:01:03.623155 2006] debug: Sent: :OperServ NOTICE PiTTy :Services are now in debug mode.
[Feb 21 20:01:07.678289 2006] debug: Received: :PiTTy PRIVMSG operserv :modload hs_request_fant
[Feb 21 20:01:07.678582 2006] OperServ: PiTTy: modload hs_request_fant
[Feb 21 20:01:07.678773 2006] Trying to load module [hs_request_fant]
[Feb 21 20:01:07.679312 2006] Runtime module location: /home/thepitster/services/modules/runtime/hs_request_fant.so.URFzZG
[Feb 21 20:01:07.786511 2006] Displaying command list for request
[Feb 21 20:01:07.786695 2006] 1:  0x0x83ce248
[Feb 21 20:01:07.786841 2006] end
[Feb 21 20:01:07.786995 2006] Displaying command list for activate
[Feb 21 20:01:07.787139 2006] 1:  0x0x840d060
[Feb 21 20:01:07.787284 2006] end
[Feb 21 20:01:07.787437 2006] Displaying command list for reject
[Feb 21 20:01:07.787581 2006] 1:  0x0x840d0b8
[Feb 21 20:01:07.787726 2006] end
[Feb 21 20:01:07.787878 2006] Displaying command list for waiting
[Feb 21 20:01:07.788021 2006] 1:  0x0x840d110
[Feb 21 20:01:07.788165 2006] end
[Feb 21 20:01:07.788315 2006] Displaying command list for LIST
[Feb 21 20:01:07.788457 2006] 1:  0x0x83abe48
[Feb 21 20:01:07.788683 2006] end
[Feb 21 20:01:07.788829 2006] debug: existing cmd: (0x0x83abe48), new cmd (0x0x840d178)
[Feb 21 20:01:07.788976 2006] Displaying command list for list
[Feb 21 20:01:07.789119 2006] 1:  0x0x840d178
[Feb 21 20:01:07.789264 2006] 2:  0x0x83abe48
[Feb 21 20:01:07.789408 2006] end
[Feb 21 20:01:07.789557 2006] Displaying command list for DROP
[Feb 21 20:01:07.789700 2006] 1:  0x0x8315200
[Feb 21 20:01:07.789845 2006] end
[Feb 21 20:01:07.789986 2006] debug: existing cmd: (0x0x8315200), new cmd (0x0x840d208)
[Feb 21 20:01:07.790133 2006] Displaying command list for drop
[Feb 21 20:01:07.790276 2006] 1:  0x0x840d208
[Feb 21 20:01:07.790421 2006] 2:  0x0x8315200
[Feb 21 20:01:07.790565 2006] end
[Feb 21 20:01:07.790724 2006] Displaying message list for db_saving
[Feb 21 20:01:07.790870 2006] 1: 0x0x840d298
[Feb 21 20:01:07.791014 2006] end
[Feb 21 20:01:07.791161 2006] debug: existing msg: (0x0x836fd70), new msg (0x0x840d2f8)
[Feb 21 20:01:07.791308 2006] Displaying message list for bot_command
[Feb 21 20:01:07.791450 2006] 1: 0x0x840d2f8
[Feb 21 20:01:07.791595 2006] 2: 0x0x836fd70
[Feb 21 20:01:07.791739 2006] 3: 0x0x836e7e8
[Feb 21 20:01:07.791884 2006] 4: 0x0x836d280
[Feb 21 20:01:07.792028 2006] 5: 0x0x836bcf8
[Feb 21 20:01:07.792172 2006] 6: 0x0x836a780
[Feb 21 20:01:07.792317 2006] end
[Feb 21 20:01:07.798638 2006] debug: [hs_request] Set config vars: MemoUser=1 MemoOper=0 MemoSetters=1 DBName='hs_request.db'
[Feb 21 20:01:07.798821 2006] debug: hs_request_fant Adding 21 texts for language 0
[Feb 21 20:01:07.799015 2006] debug: hs_request_fant Adding 21 texts for language 12
[Feb 21 20:01:07.799196 2006] debug: hs_request_fant Adding 21 texts for language 5
[Feb 21 20:01:07.799390 2006] debug: hs_request_fant Adding 21 texts for language 8
[Feb 21 20:01:07.799599 2006] [hs_request] Loading database...
[Feb 21 20:01:07.799857 2006] [hs_request] Succesfully loaded database
[Feb 21 20:01:07.800006 2006] hs_request loaded
[Feb 21 20:01:07.803656 2006] debug: Sent: :OperServ GLOBOPS :PiTTy loaded module hs_request_fant
[Feb 21 20:01:07.804322 2006] debug: Sent: :OperServ NOTICE PiTTy :Module hs_request_fant loaded
[Feb 21 20:01:07.804496 2006] Module loading status: 0
[Feb 21 20:01:11.092793 2006] debug: Received: :PiTTy PRIVMSG #vhost :!vhost bite.me.fewl
[Feb 21 20:01:11.093148 2006] debug: Emitting event "bot_command" (4 args)
[Feb 21 20:01:18.577333 2006] debug: Received: :PiTTy PRIVMSG operserv :set debug off
[Feb 21 20:01:18.577638 2006] OperServ: PiTTy: set debug off
[Feb 21 20:01:18.577910 2006] Debug mode deactivated



[Edited on 22-2-2006 by thepitster]
Logged

Trystan Scott Lee

  • Contributor
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 343
(No subject)
« Reply #6 on: February 22, 2006, 03:40:46 AM »

What about it doesn't work???
Logged
my God my tourniquet, return to me salvation

Trystan Scott Lee

  • Contributor
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 343
(No subject)
« Reply #7 on: February 22, 2006, 04:34:00 AM »

blah I finally tried to read that mess you posted

Was not the one I pointed him to.. you should really read the link
http://www.nomadinc.net/mymods/files/vhost_fantasy.c NOT http://www.nomadinc.net/mymods/files/hs_request_fant.c

And yeah since the hs_request_fant.c is before the change to how Anope reads its fantasy commands of course its broken..  can grab it now that its been updated
Logged
my God my tourniquet, return to me salvation

juanker

  • Guest
(No subject)
« Reply #8 on: February 23, 2006, 06:32:15 PM »

I'm unabe to compile this module with latest stable anope (1.6.4):


Quote

make[1]: Entering directory `/root/anope-1.6.4/modules'
gcc -O2 -Wall -g -c vhost_fantasy.c
vhost_fantasy.c: In function `AnopeInit':
vhost_fantasy.c:55: error: `EvtHook' undeclared (first use in this function)
vhost_fantasy.c:55: error: (Each undeclared identifier is reported only once
vhost_fantasy.c:55: error: for each function it appears in.)
vhost_fantasy.c:55: error: `hook' undeclared (first use in this function)
vhost_fantasy.c:57: warning: implicit declaration of function `createEventHook'
vhost_fantasy.c:57: error: `EVENT_BOT_FANTASY' undeclared (first use in this function)
vhost_fantasy.c:58: warning: implicit declaration of function `moduleAddEventHook'
vhost_fantasy.c:60: error: `EVENT_BOT_FANTASY_NO_ACCESS' undeclared (first use in this function)
vhost_fantasy.c:63: error: `EVENT_RELOAD' undeclared (first use in this function)
vhost_fantasy.c:68: warning: implicit declaration of function `moduleSetType'
vhost_fantasy.c:68: error: `THIRD' undeclared (first use in this function)
...
etc


Full log attached.
Any ideas?
Thanks.
Logged

Trystan Scott Lee

  • Contributor
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 343
(No subject)
« Reply #9 on: February 23, 2006, 07:04:02 PM »

its not for 1.6.x versions
Logged
my God my tourniquet, return to me salvation

juanker

  • Guest
(No subject)
« Reply #10 on: February 23, 2006, 07:18:40 PM »

Oh ok, that explains, thanks.
A small note in the .c file wouldn't mind :)
Logged

thepitster

  • Guest
(No subject)
« Reply #11 on: February 24, 2006, 12:32:39 AM »

sorry Trystan i didnt add in that hs_request_fant doesnt work, was late and i was bushed from a hard days work so i wasnty completely here when i was posting.

on another note i tried the newest one up and worx perfectly thanx
Logged

Vorex

  • Guest
(No subject)
« Reply #12 on: February 26, 2006, 01:44:34 AM »

Quote
Originally posted by thepitster
Vorex you module works good but why the kick from hostserv?
<!PiTTy> !vhost bite.me.fewl
* HostServ sets mode: +b *!*@Network-Admin.allripped.net (Ban Affects: PiTTy)
* You were kicked by HostServ (You can request a new vhost a week after your last one. Thank you. The new request system is based on hosts, if you have not recently requested a vhost, please rejoin #vhost and ask for one from an IRCop)
[Edited on 22-2-2006 by thepitster]


Theres no reason for them to be in #vhost after they receive a vhost, and ircops shouldn't be using the !vhost command to set their own vhost... ;)
Logged
Pages: [1]   Go Up