ULX

Author Topic: votemap change to votemap2  (Read 1855 times)

0 Members and 1 Guest are viewing this topic.

Offline AviZ

  • Newbie
  • *
  • Posts: 32
  • Karma: 0
votemap change to votemap2
« on: January 01, 2009, 08:44:29 PM »
Hi,

im like the way votemap2 does the voting, how can i change the command from !votemap2 to !votemap?

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: votemap change to votemap2
« Reply #1 on: January 01, 2009, 09:47:30 PM »
Find where the command is defined (in vote.lua, no doubt) and change it. Just search for "!votemap2".
Experiencing God's grace one day at a time.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: votemap change to votemap2
« Reply #2 on: January 01, 2009, 10:05:30 PM »
Also, after finding !votemap2 and renaming it, make sure to rename any other votemap functions to 'old_votemap' etc.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming