seancorfield / org-corfield-cfmx

Automatically exported from code.google.com/p/org-corfield-cfmx
0 stars 0 forks source link

pass an instance of irc bot to coldfusion #3

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.  Unable to access irc bot instance from coldfusion
2.  for example, there is no way to call the pirc bot instance function of 
op().  
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
coldfusion on vista/ coldfusion on xp

Please provide any additional information below.
[20:50] seancorfield: the underlying bot is not directly exposed
[20:50] Biggermork: so i would have to extend your java classes to get it 
done correct?
[20:51] seancorfield: it's a simple change to the IRCBotHelper class
[20:51] seancorfield: just add a method getBot() that returns this.bot
[20:52] Biggermork: ok.  cool
[20:52] seancorfield: then you can call getGatewayHelper() in CFML and 
call getBot() on that...
[20:52] seancorfield: or you could modify IRCBotGateway.handleMessage() to 
put the bot object into the CF event data
[20:53] seancorfield: data.put("bot",this.bot);
[20:53] seancorfield: then the CFC can get at it that way

Original issue reported on code.google.com by goo...@wokits.com on 22 May 2007 at 4:18

GoogleCodeExporter commented 9 years ago
Adding the bot to the data struct is probably the best solution here.

Original comment by seancorf...@gmail.com on 3 Jun 2007 at 8:27